Prime Numbers
About this exercise
Telling primes from composite numbers.
Example problems
A few of the problems this exercise asks. The printable worksheet holds ten fresh ones.
- 23 — Is this number Prime or Composite?
- 12 — Is this number Prime or Composite?
- 46 — Is this number Prime or Composite?
- 8 — Is this number Prime or Composite?
Try it yourself first — open a section below only if you get stuck.
How to solve it
A prime has exactly two divisors, one and itself. Test the small primes in turn. If 2, 3, 5 or 7 divides the number without being the number itself, it is composite.
Worked example
31 is not divisible by 2, 3 or 5, and 7 x 7 already exceeds it, so 31 is prime.
Common mistake
Counting 1 as prime. It has only one divisor, so it is neither prime nor composite.