Prime and composite numbers

A prime number has exactly two factors, 1 and itself: 2, 3, 5, 7, 11, 13… A composite number has more than two: 4, 6, 8, 9… And 1 is neither. This page explains the difference, has an interactive sieve that finds all 25 primes below 100, a factor finder for any number, and prime factorization with factor trees.

Prime vs composite

PrimeComposite
FactorsExactly 2More than 2
Examples2, 3, 5, 7, 11, 13, 17, 194, 6, 8, 9, 10, 12, 15
As a rectangleOnly one long lineMore than one rectangle

2 is the only even prime. Every other even number has 2 as a factor. 1 is not prime: it has only one factor.

Sieve of Eratosthenes: find every prime below 100

Cross out the multiples of 2, 3, 5 and 7. What is left is prime.

How to check if a number is prime

  1. Is it 1? Then it isn’t prime.
  2. Use the divisibility rules for 2, 3 and 5.
  3. Try dividing by 7, 11, 13… You only need to test primes up to the square root: for 97, test up to 9 (2, 3, 5, 7). None divide, so 97 is prime.

Factor finder

Prime factorization and factor trees

Every composite number is a product of primes in exactly one way. Build a factor tree: split 60 into 6 × 10, then 6 into 2 × 3 and 10 into 2 × 5. The primes at the ends give 60 = 2 × 2 × 3 × 5.

Common mistakes

“1 is prime”Learned “divisible by 1 and itself”.Fix: a prime has exactly two factors; 1 has one.
“9 is prime because it is odd”Thought all odd numbers are prime.Fix: 9 = 3 × 3, so it is composite.
“2 can’t be prime, it’s even”Thought all primes are odd.Fix: 2 has exactly two factors, so it is prime.
“51 is prime”It looks prime.Fix: 5 + 1 = 6, so 51 is divisible by 3 (51 = 3 × 17).

How to teach it at home

Rectangle test

Arrange counters in rectangles. Primes only make a single line.

Prime hunt

Spot primes on house numbers and number plates.

Factor tree race

Who can find the prime factors of 72 first?

By grade

Worksheets and practice

Last reviewed

Questions parents ask

What is a prime number?

A whole number greater than 1 with exactly two factors: 1 and itself. Examples: 2, 3, 5, 7, 11, 13.

Is 1 a prime number?

No. It has only one factor, so it is neither prime nor composite.

Is 2 a prime number?

Yes, and it is the only even prime.

How many prime numbers are there below 100?

25: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97.

What is a composite number?

A whole number with more than two factors, like 4, 6, 9 or 12. Every composite number can be written as a product of primes.