Resources For Teachers For Tutors For Students & Parents Pricing
Primary - Stage 3 (Year 5 & 6) Stage 3 (Year 5 & 6) Number Properties & Integers

Prime & composite numbers

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A prime number has exactly two factors, \(1\) and itself; a composite number has more than two. Count a number's factors to sort it. The number \(1\) is neither, and \(2\) is the only even prime.

A factor divides a number exactly, with no remainder. Count a number's factors to sort it.

A prime number has exactly two factors: \(1\) and the number itself.

A composite number has more than two factors.

The number \(1\) has only one factor, so it is neither prime nor composite. The number \(2\) is the only even prime.

Prime versus composite: 7 in one row, 12 in a 3 by 4 array 7 counters make only a single row of seven, so 7 is prime. 12 counters make a 3 by 4 rectangle, so 12 is composite. 7 = 1 × 7 (prime) 12 = 3 × 4 (composite)
\(7\) can be built only one way, \(1 \times 7\), so it is prime. \(12\) can be built several ways — \(1 \times 12\), \(2 \times 6\), \(3 \times 4\) — so it is composite.

List every factor, count them, then sort the number.

NumberFactorsHow manyType
\(1\)\(1\)\(1\)neither
\(2\)\(1, 2\)\(2\)prime
\(7\)\(1, 7\)\(2\)prime
\(12\)\(1, 2, 3, 4, 6, 12\)\(6\)composite

How to sort a number

  1. List the factors. Find every number that divides it exactly.
  2. Count them. Exactly two means prime; more than two means composite.
  3. Check the special cases. \(1\) is neither, and \(2\) is the only even prime.
Example 1 — Is it prime?
Is \(23\) prime or composite?
Solution

Nothing but \(1\) and \(23\) divides it. Two factors, so \(23\) is prime.

\text{factors of }23\(=\)1,\ 23
Example 2 — Counting factors
Is \(21\) prime or composite?
Solution

Four factors, so \(21\) is composite.

\text{factors of }21\(=\)1,\ 3,\ 7,\ 21
Example 3 — The number one
Why is \(1\) neither prime nor composite?
Solution

Only one factor, so it fits neither group.

\text{factors of }1\(=\)1
Example 4 — The even prime
Which is the only even prime number?
Solution

Every even number above \(2\) also has \(2\) as a factor, so the answer is \(2\).

\text{factors of }2\(=\)1,\ 2

Common pitfalls

One is neither. \(1\) has only a single factor, so it is not prime and not composite.
Even is not the same as composite. \(2\) is prime; it is the only even number that is.
Test with small primes. To check a number, try dividing by \(2\), \(3\), \(5\) and \(7\); an exact one means it is composite.

Frequently asked questions

What is a prime number?

A number with exactly two factors, \(1\) and itself. \(7\) is prime because only \(1\) and \(7\) divide it.

What is a composite number?

A number with more than two factors. \(12\) is composite because \(1, 2, 3, 4, 6\) and \(12\) all divide it.

Is 1 prime or composite?

Neither. \(1\) has only one factor, itself, so it does not fit either group.

Why is 2 special?

\(2\) is the only even prime. Every other even number also has \(2\) as a factor, giving it more than two factors.

How do you check if a number is prime?

Try dividing by the small primes \(2, 3, 5\) and \(7\). If any divides it exactly, it is composite; if none does, it is prime.