Divisibility rules let you test a number without doing the division. They are handy for simplifying fractions, checking a calculation, splitting something evenly and working out whether a number is prime. Most rules take only a few seconds once you know them.
The Rules
- Divisible by 2: the last digit is even (0, 2, 4, 6 or 8).
- Divisible by 3: the sum of the digits is divisible by 3. For 123,456 the digits add up to 21, which divides by 3, so the number does.
- Divisible by 4: the last two digits form a number divisible by 4. For 5,732, 32 ÷ 4 = 8, so yes.
- Divisible by 5: the last digit is 0 or 5.
- Divisible by 6: the number is divisible by both 2 and 3.
- Divisible by 8: the last three digits form a number divisible by 8.
- Divisible by 9: the sum of the digits is divisible by 9. For 7,281, 7 + 2 + 8 + 1 = 18, so yes.
- Divisible by 10: the last digit is 0.
- Divisible by 11: take the alternating sum of the digits, from the right. If it is divisible by 11 (including 0), so is the number. For 918,082: 2 − 8 + 0 − 8 + 1 − 9 = −22, which divides by 11, so it does. For 1,234,567: 7 − 6 + 5 − 4 + 3 − 2 + 1 = 4, so it does not.
Why do the 3 and 9 rules work? Because 10 leaves a remainder of 1 when divided by 3 or 9, so every power of ten does too, and a number has the same remainder as its digit sum.
Prime Numbers
A prime is a whole number greater than 1 with exactly two divisors: 1 and itself. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. The number 2 is the only even prime, and 1 is not prime. Numbers with more than two divisors are composite.
Testing Whether a Number Is Prime
To test a number n, you only need to try dividing by the primes up to the square root of n. If none divides it, it is prime.
Example: is 97 prime? The square root of 97 is just under 10, so test 2, 3, 5 and 7. 97 is odd, the digit sum is 16 (not divisible by 3), it does not end in 0 or 5, and 7 × 14 = 98, so 7 does not divide it. So 97 is prime.
Example: is 91 prime? It passes 2, 3 and 5, but 7 × 13 = 91, so it is composite. Numbers like 91 look prime, which is why the check is useful.
Prime Factorisation
Every whole number above 1 can be written as a product of primes in exactly one way. To find it, divide by the smallest prime that works, repeat, and stop when you reach 1.
Example: 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45, ÷ 3 = 15, ÷ 3 = 5. So 360 = 2 × 2 × 2 × 3 × 3 × 5, or 2³ × 3² × 5.
Greatest Common Factor and Least Common Multiple
Prime factors make these easy. For 12 (2² × 3) and 18 (2 × 3²):
- The greatest common factor takes the lowest power of each shared prime: 2 × 3 = 6.
- The least common multiple takes the highest power of each prime: 2² × 3² = 36.
The GCF is used for simplifying fractions, and the LCM is used to find a common denominator. Simplifying a ratio also relies on it, as in our guide to ratios and proportions.
Where Primes Are Used
Prime numbers underpin modern cryptography. Securing a message or a payment often relies on the fact that multiplying two very large primes is easy, while splitting the product back into primes is extremely hard. Understanding the basics of factorisation shows why.
Common Mistakes
- Calling 1 a prime number.
- Forgetting that 2 is prime and even.
- Checking only 2, 3 and 5, and missing 7 and 11.
- Misapplying the 11 rule by adding all the digits instead of alternating the signs.
Your Turn to Try
Pick five numbers from a bill or a licence plate, test them for divisibility by 2, 3, 5 and 11, and find the prime factors of one. Check your answers with our Scientific calculator, and read our guide to mental maths tricks.