Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 7 Maths Whole Numbers

Prime and Composite Numbers

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Prime and Composite Numbers - Video - Prime and Composite Numbers 1 Watch
  • Prime and Composite Numbers - Video - Prime and Composite Numbers 2 Watch
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 factors. \(1\) is neither. This Year 7 maths page shows how to list factors with factor pairs, how to test whether a number is prime and where primes turn up in problems.

A factor divides a number exactly. Find the factor pairs: two whole numbers that multiply to give the number. Stop when the pairs start to repeat. For \(10\): \(1 \times 10\) and \(2 \times 5\), so the factors are \(1, 2, 5, 10\).

Prime: exactly \(2\) factors, such as \(11 = 1 \times 11\) only. Composite: more than \(2\) factors, such as \(10\).

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

Testing a number. Look for a factor other than \(1\) and itself. Use the tests for \(2\) (even), \(3\) (digit sum) and \(5\) (ends in \(0\) or \(5\)), then try \(7\). For a whole number from \(2\) to \(99\), if none of \(2, 3, 5, 7\) divides it (and it is not one of them), it is prime.

The prime factors of a number are its factors that are prime. Twin primes are two primes that differ by \(2\).

Ten counters in a 2 by 5 rectangle Ten counters arranged as 2 rows of 5: a second factor pair, so 10 is composite.
\(10\) counters make a \(1 \times 10\) row and a \(2 \times 5\) rectangle: two factor pairs, so \(10\) is composite. \(11\) counters make only a \(1 \times 11\) row, so \(11\) is prime.
Primes up to 50 A grid of the numbers 1 to 50 with the 15 primes shaded: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
The \(15\) primes less than \(50\) are shaded. Every other number from \(4\) to \(50\) is composite; \(1\) is neither.

Primes to know:

\(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47\) (the primes less than \(50\)).

NumberFactorsType
\(1\)\(1\)neither
\(13\)\(1, 13\)prime
\(15\)\(1, 3, 5, 15\)composite
Odd does not mean prime. \(9 = 3 \times 3\) and \(51 = 3 \times 17\) are odd, but composite.
Test 7 as well. \(119\) passes the tests for \(2\), \(3\) and \(5\), but \(119 = 7 \times 17\).

How to list all the factors of a number

  1. Start with \(1 \times\) the number.
  2. Try \(2, 3, 4, \ldots\) in order, writing each factor pair.
  3. Stop when the pairs start to repeat.
  4. List the factors in order.

How to decide if a number is prime

  1. Test \(2\), \(3\), \(5\) and \(7\) (and larger primes for bigger numbers).
  2. If one divides it (and is not the number itself), it is composite.
  3. Otherwise it is prime.
Example 1 — Prime or not?
Which of \(7\), \(8\), \(15\) and \(19\) are prime?
Solution

\(7\) (factors \(1, 7\)) and \(19\) (factors \(1, 19\)) are prime. \(8 = 2 \times 4\) and \(15 = 3 \times 5\) are composite.

Example 2 — Prime factors
What are the prime factors of \(24\)?
Solution
\(24\)\(=\)\(2 \times 12\)
\(12\)\(=\)\(2 \times 6\)
\(6\)\(=\)\(2 \times 3\)
24=2×12,12=2×6,6=2×3, so 24=2×2×2×3

\(24 = 2 \times 2 \times 2 \times 3\). The prime factors are \(2\) and \(3\) (\(1\) is not prime).

Example 3 — Listing factors
List all the factors of \(36\). Is \(36\) prime or composite?
Solution

Factor pairs: \(1 \times 36\), \(2 \times 18\), \(3 \times 12\), \(4 \times 9\), \(6 \times 6\). Factors: \(1, 2, 3, 4, 6, 9, 12, 18, 36\) (\(9\) factors), so \(36\) is composite.

Example 4 — Prime or composite
Is each number prime or composite?
(i) \(93\)
(ii) \(97\)
Solution
\(93 \div 3\)\(=\)\(31\)
9+3=12, so 93=3×3197 is not divisible by 2,3,5 or 7

(i) Digit sum \(12\), so \(93 = 3 \times 31\): composite.
(ii) Odd, digit sum \(16\), does not end in \(0\) or \(5\), and \(97 \div 7 = 13 \text{ r } 6\): prime.

Example 5 — Equal teams
A class is split into equal teams: at least \(2\) teams, at least \(2\) students in each.
(i) Can a class of \(31\) be split this way?
(ii) What team sizes work for a class of \(32\)?
Solution

(i) No: \(31 = 1 \times 31\) only, so \(31\) is prime.
(ii) \(32 = 2 \times 16 = 4 \times 8\): teams of \(2\), \(4\), \(8\) or \(16\).

Example 6 — Primes in a range
(i) List the primes between \(60\) and \(80\).
(ii) Find a pair of twin primes in your list.
Solution

(i) Test \(61, 63, 67, 69, 71, 73, 77, 79\): \(63 = 3 \times 21\), \(69 = 3 \times 23\), \(77 = 7 \times 11\). Primes: \(61, 67, 71, 73, 79\).
(ii) \(71\) and \(73\).

Common pitfalls

Thinking 1 is prime. It has only one factor; a prime needs exactly two.
Thinking every odd number is prime. \(21 = 3 \times 7\).
Missing a factor pair. Try every number in order until the pairs repeat.
Forgetting 2. \(2\) is prime, and it is the only even prime.

Frequently asked questions

What is a prime number?

A whole number with exactly two factors, 1 and itself.

What is a composite number?

A whole number with more than two factors.

Is 1 a prime number?

No. It is neither prime nor composite.

What is the only even prime?

\(2\).

How do you check if a number under 100 is prime?

Check that none of \(2\), \(3\), \(5\) and \(7\) divides it.