Prime and Composite Numbers
- Prime: exactly 2 factors — 1 and itself. Examples: 2, 3, 5, 7, 11, 13, 17, 19…
- Composite: more than 2 factors. Examples: 4, 6, 8, 9, 10, 12…
- Special case: 1 is neither prime nor composite.
Prime Factorisation
Every composite number can be broken down into a product of primes — its prime factorisation.
Method: Factor tree
Method: Repeated division (ladder)
Divide repeatedly by the smallest prime that fits.
Using Prime Factorisation
GCD (Greatest Common Divisor) — take the lowest power of each shared prime:
LCM (Lowest Common Multiple) — take the highest power of each prime:
- 1
Write the number
120 - 2
Divide by 2 (smallest prime)
120 ÷ 2 = 60 → 60 ÷ 2 = 30 → 30 ÷ 2 = 15 - 3
Divide by 3
15 ÷ 3 = 5 - 4
5 is prime — done
Find the LCM of 12 and 18.
Real world: RSA encryption in cybersecurity
RSA encryption — used to secure every HTTPS website — works because multiplying two large primes (e.g. , ) gives a number () that is very hard to factor back. Prime factorisation underpins the security of online banking and messaging apps.
Real world: simplifying engineering fractions
An engineer needs to simplify a gear ratio of . , so the ratio simplifies to — meaning for every 7 turns of one gear, the other turns 10 times. Prime factorisation makes this calculation fast and reliable.
Practice Problems
Write the prime factorisation of 72.
Show answer
Find the GCD of 60 and 90.
Show answer
Is 97 prime?