Prime and composite numbers
Is a number prime, composite or neither?
A prime number has exactly two factors, 1 and itself, like 7 or 13. A composite number has more than two factors, like 15 (1, 3, 5 and 15). The number 1 has only one factor, so it is neither prime nor composite.
Example: Is 51 prime or composite?
- 5 + 1 = 6 — The digits add to a multiple of 3, so 3 divides 51
- 51 = 3 × 17 — A factor besides 1 and 51
- composite — More than two factors
Why it works: A prime can only be made as 1 times itself. If you find any other way to multiply to it, it is composite.
Tip: For a number under 100, try dividing by 2, 3, 5 and 7. If none of them divides it evenly (other than the number itself), it is prime.