Back to the path
ℙ

Prime numbers and prime factorisation

Level 5 · Ages 15–16

Quick recall· Let's wake up what you already know before we start.

Recall: is 87 divisible by 3?

The whole lesson

Read it again any time, including while you work through the exercises.

In chemistry, all matter is made of atoms. In arithmetic, it is the same: every whole number is made of prime numbers. A prime number is an integer with exactly two divisors: 1 and itself. The first ones on the list: 2, 3, 5, 7, 11, 13, 17, 19, 23...

Two traps to avoid from the start. First, 1 is not prime: it has only one divisor (itself), not two. Second, 2 really is prime, in fact it is the only even prime: every other even number is divisible by 2, so it has at least three divisors.

The central theorem of this lesson is so important it is called the fundamental theorem of arithmetic: every integer greater than or equal to 2 can be written as a product of prime factors, and this writing is unique (up to order). For example 84 = 2 × 2 × 3 × 7, which we write 84 = 2² × 3 × 7. It is the number's identity card: no other integer has the same one.

To factorise, the method is simple: divide by the smallest possible prime, again and again, until you reach 1. And to test whether a number is prime, no need to try every divisor: it is enough to test the primes whose square does not exceed the number. For 101, we test 2, 3, 5 and 7 (since 11² = 121 > 101): none divides 101, so 101 is prime.

This factorisation is a superpower: it lets you simplify fractions, find GCDs, and it even protects your messages on the Internet, because breaking a very large number into prime factors is a challenge even computers cannot meet quickly. Time to play with the atoms of numbers!

The worked example, step by step

Write 84 as a product of prime factors.

  1. 84 ÷ 2 = 42

    84 is even, so I divide by the smallest prime, 2.

  2. 42 ÷ 2 = 21

    42 is still even, so I divide by 2 again.

  3. 21 ÷ 3 = 7

    21 is no longer even, but 2 + 1 = 3: it is divisible by 3.

  4. 7 ÷ 7 = 1

    7 is prime, I divide by 7 and reach 1: the factorisation is complete.

  5. 84 = 2² × 3 × 7

    I collect the factors: two 2s, one 3, one 7. Check: 4 × 3 × 7 = 84.

Result: 84 = 2² × 3 × 7

Is the number 91 prime?

  1. 9² = 81 ≤ 91 < 100 = 10²

    I only need to test the primes whose square does not exceed 91: that is 2, 3, 5 and 7.

  2. 91 impair, 9 + 1 = 10, finit par 1

    91 is not divisible by 2 (it is odd), nor by 3 (digit sum 10), nor by 5 (it does not end in 0 or 5).

  3. 91 = 7 × 13

    That leaves 7: and surprise, 7 × 13 = 91! So 91 has divisors other than 1 and itself.

Result: No, 91 is not prime: 91 = 7 × 13.