MathematicsGrade 5–6

Prime factorisation and divisibility

Break numbers down into prime factors, check divisibility rules and find primes with a sieve. This also gives you the gcd and the lcm.

Loading simulation …

What is it about?

A prime number is a natural number with exactly two divisors: 11 and itself. 2,3,5,7,11,13,…2, 3, 5, 7, 11, 13, \ldots are primes. 11 is not a prime, because it has only one divisor. 22 is the only even prime. Numbers with more than two divisors are called composite.

Prime factorisation: Every natural number greater than 11 can be written as a product of primes. In a factor tree you keep splitting until only primes are left:

360=18⋅20=2⋅2⋅2⋅3⋅3⋅5=23⋅32⋅5360 = 18 \cdot 20 = 2 \cdot 2 \cdot 2 \cdot 3 \cdot 3 \cdot 5 = 2^3 \cdot 3^2 \cdot 5

However you start the tree, you always end with the same prime factors. The prime factorisation is unique (apart from the order).

Divisibility rules help you find divisors quickly:

  • by 22, 55 or 1010: look at the last digit.
  • by 44 or 2525: look at the number formed by the last two digits.
  • by 33 or 99: check the digit sum, e.g. 3+6+0=93 + 6 + 0 = 9.
  • by 66: the number is divisible by 22 and by 33.

Sieve of Eratosthenes: Cross out 11. The smallest number not crossed out is a prime; circle it and cross out all its multiples. For a prime pp, the first multiple that gets newly crossed out is p⋅pp \cdot p, e.g. 4949 for 77 – smaller multiples are already crossed out. Up to 100100 the primes 2,3,52, 3, 5 and 77 are enough, because 11⋅11=12111 \cdot 11 = 121 is already greater than 100100.

gcd and lcm: The greatest common divisor is the product of the common prime factors. The least common multiple is the product of all prime factors, where common ones are counted only once. With 24=2⋅2⋅2⋅324 = 2 \cdot 2 \cdot 2 \cdot 3 and 36=2⋅2⋅3⋅336 = 2 \cdot 2 \cdot 3 \cdot 3:

gcd⁡(24,36)=2⋅2⋅3=12lcm⁡(24,36)=2⋅2⋅2⋅3⋅3=72\gcd(24, 36) = 2 \cdot 2 \cdot 3 = 12 \qquad \operatorname{lcm}(24, 36) = 2 \cdot 2 \cdot 2 \cdot 3 \cdot 3 = 72

Try it

  1. Split 360 step by step: tap the dashed numbers or press Split.
  2. Press Another tree several times. What changes, and what always stays the same?
  3. Always split off the smallest prime factor. What does the tree look like now?
  4. Split 512 and write the result as a power.
  5. Tap a number in the tree: next to it (below it on a phone) you see which numbers divide it. Try 783 – the digit sum tells you a lot.
  6. Run the sieve up to 100 with Next prime. Tap a crossed-out number: which prime crossed it out?
  7. Arrange the numbers in 6 columns. In which columns are the primes from 55 on? Why?
  8. Find gcd and lcm of 24 and 36 with Sort the factors. What happens with 8 and 15?

Tasks

Task 1: Prime factorisation

Load task Split 8484, 126126 and 500500 into prime factors and write them with powers.

Show solution

84=22⋅3⋅784 = 2^2 \cdot 3 \cdot 7, 126=2⋅32⋅7126 = 2 \cdot 3^2 \cdot 7 and 500=22⋅53500 = 2^2 \cdot 5^3. Show 126 · Show 500

Task 2: Divisibility rules

Check without a calculator whether 852852 is divisible by 22, 33, 44, 66 and 99.

Show solution

The last digit 22 is even: divisible by 22. The digit sum 8+5+2=158 + 5 + 2 = 15 is divisible by 33, but not by 99. 5252 is divisible by 44, so 852852 is too. Divisible by 22 and by 33 means divisible by 66. 852852 is only not divisible by 99. Check

Task 3: Finding primes

Which primes lie between 5050 and 7070?

Show solution

5353, 5959, 6161 and 6767. All other numbers in between are divisible by 22, 33, 55 or 77, e.g. 51=3⋅1751 = 3 \cdot 17 and 57=3⋅1957 = 3 \cdot 19. Show the sieve

Task 4: gcd and lcm

Load task Find the gcd and lcm of 6060 and 8484 using their prime factors.

Show solution

60=2⋅2⋅3⋅560 = 2 \cdot 2 \cdot 3 \cdot 5 and 84=2⋅2⋅3⋅784 = 2 \cdot 2 \cdot 3 \cdot 7. The common factors are 2⋅2⋅32 \cdot 2 \cdot 3, so gcd⁡(60,84)=12\gcd(60, 84) = 12. All factors: lcm⁡(60,84)=2⋅2⋅3⋅5⋅7=420\operatorname{lcm}(60, 84) = 2 \cdot 2 \cdot 3 \cdot 5 \cdot 7 = 420.

Task 5: Buses

Two buses leave at the same time at 88 o’clock. Bus A leaves every 1212 minutes, bus B every 1818 minutes. When do they next leave at the same time?

Show solution

You need the least common multiple: lcm⁡(12,18)=36\operatorname{lcm}(12, 18) = 36. The buses leave together again at 8:368{:}36. Show in the simulation

Task 6: Why is 7 enough?

Explain why you can stop after the multiples of 77 when sieving up to 100100.

Show solution

A composite number up to 100100 is a product a⋅ba \cdot b with a≤ba \le b. If aa were greater than 1010, then a⋅b>10⋅10=100a \cdot b > 10 \cdot 10 = 100. So every composite number up to 100100 has a divisor up to 1010 and therefore a prime factor 22, 33, 55 or 77 – it has already been crossed out.

Ideas for the classroom

  • Use: About grade 5 (prime factorisation and divisibility rules). gcd and lcm are needed later for simplifying fractions and finding common denominators (year 6).
  • Three views: factor tree with divisibility rules, sieve of Eratosthenes and gcd/lcm in a set diagram. Each prime keeps the same colour in all views.
  • Step by step: If “Show the result right away” is off (show=0), tree, sieve and set diagram start empty and are built up with the buttons or by tapping.
  • Uniqueness: “Another tree” splits with random divisors. That the same prime factors always appear is a good reason to ask why (without proof in year 5).
  • Common stumbling blocks:
    • “11 is a prime.”
    • “Odd numbers are primes.” – 99, 1515, 51=3⋅1751 = 3 \cdot 17 and 91=7⋅1391 = 7 \cdot 13 are not.
    • The digit-sum rule is applied to 44.
    • gcd and lcm are mixed up; the set diagram shows: the intersection gives the gcd, everything together the lcm.