Divisibility rules chart
| Divisor | Rule | Example |
|---|---|---|
| 2 | The last digit is even (0, 2, 4, 6, 8). | 1,358 ends in 8 |
| 3 | The sum of the digits is divisible by 3. | 531: 5 + 3 + 1 = 9 |
| 4 | The last two digits make a number divisible by 4. | 7,316: 16 ÷ 4 = 4 |
| 5 | The last digit is 0 or 5. | 2,485 |
| 6 | It's divisible by both 2 and 3. | 714: even, and 7 + 1 + 4 = 12 |
| 7 | Double the last digit and subtract it from the rest; repeat until the result is easy to check. | 203: 20 − 6 = 14 |
| 8 | The last three digits make a number divisible by 8. | 5,136: 136 ÷ 8 = 17 |
| 9 | The sum of the digits is divisible by 9. | 4,887: 4 + 8 + 8 + 7 = 27 |
| 10 | The last digit is 0. | 4,560 |
| 11 | The alternating sum of the digits (from the right: +, −, +…) is divisible by 11. | 918,082: 2 − 8 + 0 − 8 + 1 − 9 = −22 |
| 12 | It's divisible by both 3 and 4. | 1,512: digits sum to 9, and 12 ÷ 4 = 3 |
Using divisibility rules to spot primes
If any rule from 2 to 11 passes, the number is composite (unless it is that divisor itself). Passing none doesn't prove it's prime, though: 169 = 13 × 13 fails every rule up to 12. For a definite answer, use the prime number checker, or read how to test primes by hand in what is a prime number.