Skip to main content

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.

Updated
Scroll to begin ↓
Turn this on and each part is read out as you reach it.
Factor pairs: 12 has six factors, 13 has two12 = 1 × 12 = 2 × 6 = 3 × 41122634Factors of 12: 1, 2, 3, 4, 6, 12More than two factors: composite13 = 1 × 13 only113Factors of 13: 1 and 13Exactly two factors: prime
Six factors for 12, only two for 13.
🔍 In detailThe primes to know, and two special casesPart 2 of 10
🧮 Maths labCan it make a rectangle?Part 3 of 10
🎯 Check yourselfCheck yourself: factors, primes and compositesPart 4 of 10
✏️ Worked exampleTesting whether a number is primePart 5 of 10
Sieve of Eratosthenes: the primes up to 100 are shaded12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910025 primes below 100. The number 1 is neither prime nor composite.
The shaded squares are the primes up to 100.
A factor tree for 6060610232560 = 2 × 3 × 2 × 5 = 2 × 2 × 3 × 5Keep splitting until every end is a prime (the shaded boxes).
Keep splitting until every end is prime.
⚠️ Common mistakesCommon mistakes with primesPart 8 of 10
🧮 Maths labPrime factorsPart 9 of 10
🎯 Check yourselfCheck yourself: finding and using primesPart 10 of 10
Subtopic 1 of 2

7.1 Factors, primes and composites

4 parts
1📘 DefinitionPart 1 / 10

Counting factors

Factor pairs: 12 has six factors, 13 has two12 = 1 × 12 = 2 × 6 = 3 × 41122634Factors of 12: 1, 2, 3, 4, 6, 12More than two factors: composite13 = 1 × 13 only113Factors of 13: 1 and 13Exactly two factors: prime
Six factors for 12, only two for 13.

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?

  1. Find pairs: 1 × 24, 2 × 12, 3 × 8, 4 × 6.
  2. Each pair gives two factors.
  3. 1, 2, 3, 4, 6, 8, 12, 24.
  4. 24 has 8 factors, so it is composite.
Check yourself: Which number has exactly two factors?
2🔍 In detailPart 2 / 10

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?

  1. List the numbers 11 to 19 and test each.
  2. 11 is prime, 12 is not, 13 is prime, 14 and 15 and 16 are not.
  3. 17 is prime, 18 is not, 19 is prime.
  4. The primes are 11, 13, 17 and 19: that is 4.
Sort them
Prime or composite?

Tap an item, then the box it belongs in.

Prime
Composite
3🧮 Maths labPart 3 / 10

Can it make a rectangle?

Use the buttons, or tap the boxes, to build the answer. Then press Check.

4🎯 Check yourselfPart 4 / 10

Check yourself: factors, primes and composites

Subtopic 2 of 2

7.2 Finding and using primes

6 parts
5✏️ Worked examplePart 5 / 10

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.

  1. Not even, so 2 does not divide it.
  2. 2 + 1 = 3, so 3 divides it.
  3. 21 ÷ 3 = 7 exactly.
  4. 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?

  1. 91 is odd, so 2 does not divide it.
  2. 9 + 1 = 10, which is not a multiple of 3, and 91 does not end in 0 or 5.
  3. Try 7: 7 × 13 = 91.
  4. The other number is 13, so 91 is composite.
Check yourself: Which of these is prime?
6🔍 In detailPart 6 / 10

Finding primes with a sieve

Sieve of Eratosthenes: the primes up to 100 are shaded12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910025 primes below 100. The number 1 is neither prime nor composite.
The shaded squares are the primes up to 100.

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?

  1. Run the sieve using 2, 3, 5 and 7.
  2. Count the numbers left in the grid.
  3. Primes under 10: 4. Between 10 and 50: 11 more. Between 50 and 100: 10 more.
  4. The total is 25.
Check yourself: After the sieve has crossed out 1 and the multiples of 2, 3, 5 and 7, which numbers are left?
7🌍 In the real worldPart 7 / 10

Primes as building blocks: factor trees

A factor tree for 6060610232560 = 2 × 3 × 2 × 5 = 2 × 2 × 3 × 5Keep splitting until every end is a prime (the shaded boxes).
Keep splitting until every end is prime.

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?

  1. 12 = 3 × 4.
  2. 3 is prime. 4 = 2 × 2.
  3. 12 = 2 × 2 × 3.
  4. There are 3 primes in the product.

Worked example

Write 60 as a product of primes. How many primes?

  1. 60 = 6 × 10.
  2. 6 = 2 × 3 and 10 = 2 × 5.
  3. 60 = 2 × 2 × 3 × 5.
  4. There are 4 primes.
Check yourself: Which is 18 written as a product of primes?
8⚠️ Common mistakesPart 8 / 10

Common mistakes with primes

Tap each trap and say the fix before you look
4Stopping a factor tree early with a composite number at the end, such as 4 or 9.
9🧮 Maths labPart 9 / 10

Prime factors

Read the example one step at a time. Then try one yourself.

10🎯 Check yourselfPart 10 / 10

Check yourself: finding and using primes

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

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.