Prime & Composite Numbers: The Building Blocks Class 5 Mathematics lesson
Count factors to tell primes from composites, learn the primes you need, test a number, find primes with a sieve, and break a number into primes with a factor tree.
7.1 Factors, primes and composites
Counting factors
A of a number divides into it exactly. To find all the factors of 12, look for pairs that multiply to 12: 1 × 12, 2 × 6 and 3 × 4. The factors are 1, 2, 3, 4, 6 and 12.
Now sort numbers by how many factors they have:
- A has exactly two factors: 1 and itself. 13 is prime, because only 1 × 13 makes 13.
- A has more than two factors. 12 is composite.
Worked example
How many factors does 24 have?
- Find pairs: 1 × 24, 2 × 12, 3 × 8, 4 × 6.
- Each pair gives two factors.
- 1, 2, 3, 4, 6, 8, 12, 24.
- 24 has 8 factors, so it is composite.
The primes to know, and two special cases
Under 20 the primes are 2, 3, 5, 7, 11, 13, 17 and 19. Learn these eight and many questions become quick.
Two special cases catch people out:
- 1 is not prime. It has only one factor (itself), and a prime needs exactly two. It is not composite either.
- 2 is the only even prime. Every other even number has 2 as an extra factor, so it has more than two.
Be careful not to assume that all odd numbers are prime. 9, 15 and 21 are all odd, yet they are composite: 9 = 3 × 3, 15 = 3 × 5 and 21 = 3 × 7.
Worked example
How many prime numbers are there between 10 and 20?
- List the numbers 11 to 19 and test each.
- 11 is prime, 12 is not, 13 is prime, 14 and 15 and 16 are not.
- 17 is prime, 18 is not, 19 is prime.
- The primes are 11, 13, 17 and 19: that is 4.
Tap an item, then the box it belongs in.
Can it make a rectangle?
Use the buttons, or tap the boxes, to build the answer. Then press Check.
Check yourself: factors, primes and composites
All ticked. If one felt shaky, its part is one tap away in the list on the left.
7.2 Finding and using primes
Testing whether a number is prime
To test a number, try dividing it by the small primes 2, 3, 5 and 7 in turn. If none divides it exactly (and the number is bigger than the prime itself), it is prime, at least up to 100.
Some quick divisibility rules help. A number divides by 2 if it ends in 0, 2, 4, 6 or 8. By 5 if it ends in 0 or 5. By 3 if its digits add to a multiple of 3. For example, 57: 5 + 7 = 12, which is in the 3 times table, so 57 divides by 3. It is 3 × 19, which means 57 is composite even though it looks prime.
Worked example
Is 21 prime? Find the smallest prime that divides it.
- Not even, so 2 does not divide it.
- 2 + 1 = 3, so 3 divides it.
- 21 ÷ 3 = 7 exactly.
- The smallest prime factor is 3, so 21 is composite.
Worked example
91 is not divisible by 2, 3 or 5, but it is not prime. It equals 7 times another number. What is that number?
- 91 is odd, so 2 does not divide it.
- 9 + 1 = 10, which is not a multiple of 3, and 91 does not end in 0 or 5.
- Try 7: 7 × 13 = 91.
- The other number is 13, so 91 is composite.
Finding primes with a sieve
Write the numbers 1 to 100 in a grid. Cross out 1. Keep 2 and cross out every other of 2 (4, 6, 8 and so on). Keep 3 and cross out its multiples. Then keep 5 and cross out its multiples, and 7 as well. Whatever is left is a prime. This is the , named after a mathematician who lived over two thousand years ago.
Why stop at 7? Because 11 × 11 = 121 is already bigger than 100, so every composite number up to 100 has a factor of 7 or smaller.
Worked example
How many prime numbers are there up to 100?
- Run the sieve using 2, 3, 5 and 7.
- Count the numbers left in the grid.
- Primes under 10: 4. Between 10 and 50: 11 more. Between 50 and 100: 10 more.
- The total is 25.
Primes as building blocks: factor trees
Every composite number can be broken down into multiplied together. That is why primes are called the building blocks of all the other numbers.
A factor tree shows how. Split the number into any two factors, then keep splitting each composite until every end is a prime. 60 = 6 × 10, then 6 = 2 × 3 and 10 = 2 × 5, so 60 = 2 × 2 × 3 × 5.
Worked example
Write 12 as a product of primes. How many primes are in the product?
- 12 = 3 × 4.
- 3 is prime. 4 = 2 × 2.
- 12 = 2 × 2 × 3.
- There are 3 primes in the product.
Worked example
Write 60 as a product of primes. How many primes?
- 60 = 6 × 10.
- 6 = 2 × 3 and 10 = 2 × 5.
- 60 = 2 × 2 × 3 × 5.
- There are 4 primes.
Common mistakes with primes
Prime factors
Read the example one step at a time. Then try one yourself.
Check yourself: finding and using primes
All ticked. If one felt shaky, its part is one tap away in the list on the left.
Key terms in this chapter
6 terms, A to Z. Tap a term for the full explanation, or cover the right-hand side and test yourself.
- A number with more than two factors.
- A whole number that divides exactly into another number, leaving no remainder.
- A number you get by multiplying a number by 1, 2, 3 and so on.
- A factor that is also a prime number.
- A number with exactly two factors: 1 and itself.
- A method that crosses out multiples to leave only the primes.
Reference material
Official papers to practise on, the same topic in other syllabuses, and trusted places to read more. Links open in a new tab.
Official Cambridge material
- Cambridge Primary Mathematics curriculum frameworkStage 6 and the Lower Secondary Stage 7 that follows it.
Practise Prime & Composite Numbers
Everything on QuizByt for Class 5 Mathematics that goes with this lesson: read it first, then test yourself while it is fresh.
🧠 6 quizzes on Prime & Composite Numbers (2 easy, 2 medium, 2 hard)
One of them is open to everyone, no account needed. Work up from easy to hard: the hard quizzes ask the Class 5 exam-style questions on Prime & Composite Numbers.
🖨️ Printable worksheet
Prime & Composite Numbers on paper for Class 5, with room to write the working out. Preview the first page free.
🎮 Games for Class 5 Mathematics
Number and logic games at the right level for Class 5. Passing a quiz on Prime & Composite Numbers earns the credits that open them.
Now test yourself
The quiz on this topic is one of our free ones, no account needed.
Your score is not saved without an account. Create a free one to keep your progress.