Websink Prep UKKS2 MathsYear 5 chaptersMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
Primary Maths · Year 5Chapter 3 · Multiples, factors, primes, squares and cubes
Year 5 · Prime Numbers, Factors, Squares and Cubes · Lesson 3.4

Year 5: Prime and composite numbers

Part of the Year 5 prime numbers, factors, squares and cubes chapter. Chapter overview · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
3.4

Prime and composite numbers

Year 5
Prime numbers, Composite numbers, Recall primes to 19, Establish whether a number up to 100 is prime

Look at the factors of 7: only 1 and 7. Look at the factors of 8: 1, 2, 4 and 8. A number like 7 is special. It is called a prime number. A prime number has exactly two factors: 1 and itself. A number like 8 has more than two factors, so it is a composite number. With square tiles you can see the difference. A prime can only make one rectangle: a single long row. A composite number can make more than one.

1 × 7
7 squares make only one rectangle (1 × 7). So 7 is prime.
1 × 82 × 4
8 squares make two different rectangles (1 × 8 and 2 × 4). So 8 is composite.

Two special numbers. The number 1 has only one factor, so it is neither prime nor composite. The number 2 is prime (factors 1 and 2), and it is the only even prime, because every other even number has 2 as a factor as well as 1 and itself.

Learn the primes up to 19: 2, 3, 5, 7, 11, 13, 17 and 19.

The Sieve of Eratosthenes. This is an old way to find primes, using a hundred square. Cross out 1. Keep 2, then cross out every multiple of 2. Keep 3, then cross out every multiple of 3. Keep 5 and cross out its multiples. Keep 7 and cross out its multiples. All the numbers that are left are the primes.

12345678910
11121314151617181920
21222324252627282930
31323334353637383940
41424344454647484950
51525354555657585960
61626364656667686970
71727374757677787980
81828384858687888990
919293949596979899100
Part-way through the sieve. 1 is purple. The multiples of 2 (orange) and of 3 (green) are shaded. 2 and 3 are kept (gold).
12345678910
11121314151617181920
21222324252627282930
31323334353637383940
41424344454647484950
51525354555657585960
61626364656667686970
71727374757677787980
81828384858687888990
919293949596979899100
The finished sieve. The 25 gold numbers are the primes up to 100: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97.

Is a number up to 100 prime? You do not need a sieve every time. Test the number with the divisibility tests for 2, 3, 5 and 7. If one of them divides the number, it is not prime. If none of them does, the number is prime. Why only these four? Because 11 × 11 = 121 is bigger than 100, so any number up to 100 that is not prime must have a factor of 2, 3, 5 or 7.

Key ideas

  • A prime number has exactly two factors: 1 and itself. A composite number has more than two factors.
  • 1 is neither prime nor composite. 2 is the only even prime.
  • Primes up to 19: 2, 3, 5, 7, 11, 13, 17, 19. There are 25 primes up to 100.
  • To test a number up to 100: use the tests for 2, 3, 5 and 7. If none works, it is prime.
  • The Sieve of Eratosthenes crosses out the multiples of 2, 3, 5 and 7. The numbers left are prime.
Worked example 3.4.1
Is 13 prime, composite or neither? List its factors.

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. Find all the factors, count them, and decide.

  1. List the factors of 13. Use factor pairs.
    1 × 13
    Factors: 1, 13
  2. Count the factors.
    2 factors
  3. Decide. Prime: exactly two factors. Composite: more than two. 1: only one.
    13 is prime. Exactly two factors, so prime.

Check. Every number except 1 is either prime or composite. 13 has 2 factors. ✓

Watch out. 1 is not prime. 2 is prime (it has exactly two factors).

Worked example 3.4.2
Is 21 prime, composite or neither? List its factors.

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. Find all the factors, count them, and decide.

  1. List the factors of 21. Use factor pairs.
    1 × 21, 3 × 7
    Factors: 1, 3, 7, 21
  2. Count the factors.
    4 factors
  3. Decide. Prime: exactly two factors. Composite: more than two. 1: only one.
    21 is composite. More than two factors, so composite.

Check. Every number except 1 is either prime or composite. 21 has 4 factors. ✓

Watch out. 1 is not prime. 2 is prime (it has exactly two factors).

Worked example 3.4.3
Is 1 a prime number?

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. A prime number has exactly two factors. Find the factors of 1.

  1. List the factors of 1. Only 1 divides into 1.
    Factors of 1: 1
  2. Count the factors. A prime needs exactly two different factors.
    1 has only one factor.
  3. Decide. A composite number has more than two factors, so 1 is not composite either.
    1 is neither prime nor composite.

Check. The first prime is 2, with factors 1 and 2. ✓

Watch out. 1 is not a prime number, even though it looks like one.

Worked example 3.4.4
Is 51 a prime number?

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. Test the number with the divisibility tests for 2, 3, 5 and 7. If one of them works, the number is not prime.

  1. Remember what “prime” means. A prime has exactly two factors (1 and itself). If any other number divides it exactly, it is composite.
    We look for a factor that is not 1 or 51
  2. Test with 2, 3, 5 and 7. If a number up to 100 is not prime, one of its factors is 2, 3, 5 or 7 (11 × 11 = 121 is already over 100). Stop as soon as one divides it.
    Is it divisible by 2? The last digit of 51 is 1. Is it 0, 2, 4, 6 or 8? no.
    Is it divisible by 3? 5 + 1 = 6. 6 is in the 3 times table (3 × 2 = 6). yes.
  3. Decide.
    51 = 3 × 17, so 51 has other factors. 51 is not prime.

Check. 3 × 17 = 51. ✓

Watch out. Do not forget 7! Numbers like 49, 77 and 91 pass the 2, 3 and 5 tests but are multiples of 7.

Worked example 3.4.5
Is 91 a prime number?

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. Test the number with the divisibility tests for 2, 3, 5 and 7. If one of them works, the number is not prime.

  1. Remember what “prime” means. A prime has exactly two factors (1 and itself). If any other number divides it exactly, it is composite.
    We look for a factor that is not 1 or 91
  2. Test with 2, 3, 5 and 7. If a number up to 100 is not prime, one of its factors is 2, 3, 5 or 7 (11 × 11 = 121 is already over 100). Stop as soon as one divides it.
    Is it divisible by 2? The last digit of 91 is 1. Is it 0, 2, 4, 6 or 8? no.
    Is it divisible by 3? 9 + 1 = 10. 10 is not in the 3 times table (9 and 12 are either side). no.
    Is it divisible by 5? The last digit of 91 is 1. Is it 0 or 5? no.
    Is it divisible by 7? 7 × 13 = 91 and 7 × 14 = 98. yes.
  3. Decide.
    91 = 7 × 13, so 91 has other factors. 91 is not prime.

Check. 7 × 13 = 91. ✓

Watch out. Do not forget 7! Numbers like 49, 77 and 91 pass the 2, 3 and 5 tests but are multiples of 7.

Worked example 3.4.6
Is 97 a prime number?

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. Test the number with the divisibility tests for 2, 3, 5 and 7. If one of them works, the number is not prime.

  1. Remember what “prime” means. A prime has exactly two factors (1 and itself). If any other number divides it exactly, it is composite.
    We look for a factor that is not 1 or 97
  2. Test with 2, 3, 5 and 7. If a number up to 100 is not prime, one of its factors is 2, 3, 5 or 7 (11 × 11 = 121 is already over 100). Stop as soon as one divides it.
    Is it divisible by 2? The last digit of 97 is 7. Is it 0, 2, 4, 6 or 8? no.
    Is it divisible by 3? 9 + 7 = 16. 16 is not in the 3 times table (15 and 18 are either side). no.
    Is it divisible by 5? The last digit of 97 is 7. Is it 0 or 5? no.
    Is it divisible by 7? 7 × 13 = 91 and 7 × 14 = 98. no.
  3. Decide.
    None of 2, 3, 5 or 7 divides 97, so 97 is prime.

Check. The only factor pair of 97 is 1 × 97. ✓

Watch out. Do not forget 7! Numbers like 49, 77 and 91 pass the 2, 3 and 5 tests but are multiples of 7.

Worked example 3.4.7
Write all the prime numbers between 20 and 40.

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. Cross out the even numbers first. Then test each odd number that is left with the 3, 5 and 7 times tables.

  1. Write the numbers from 20 to 40.
    20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40
  2. Cross out the even numbers. Even numbers (except 2) are divisible by 2, so they are not prime.
    20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40
  3. Test each odd number that is left. Try the 3, 5 and 7 times tables. Stop when one divides it.
    21 = 3 × 7: not prime
    23: not in the 3, 5 or 7 times tables: prime
    25 = 5 × 5: not prime
    27 = 3 × 9: not prime
    29: not in the 3, 5 or 7 times tables: prime
    31: not in the 3, 5 or 7 times tables: prime
    33 = 3 × 11: not prime
    35 = 5 × 7: not prime
    37: not in the 3, 5 or 7 times tables: prime
    39 = 3 × 13: not prime
  4. Write the prime numbers.
    23, 29, 31, 37

Check. Each prime has no factor except 1 and itself. 4 primes between 20 and 40. ✓

Watch out. Do not forget to test with 7. For example 91 = 7 × 13.

Worked example 3.4.8
Use the sieve in this section to write the prime numbers between 60 and 80.

Key words. A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 is neither prime nor composite, because it has only one factor.

Method. The prime numbers are the gold squares on the finished sieve. Look along the rows for 61 to 79.

  1. Find the rows for the 60s and 70s. The 60s are the seventh row and the 70s are the eighth row.
    61, 62, 63, …, 69, 70  and  71, 72, 73, …, 79, 80
  2. Read the gold numbers. Gold numbers have not been crossed out, so they are prime.
    60s: 61, 67    70s: 71, 73, 79
  3. Write the answer. Check that none of them is 60 or 80: they are not in the list.
    61, 67, 71, 73, 79

Check. Test one with the divisibility tests: 79 is odd, 7 + 9 = 16 is not in the 3s, it does not end in 0 or 5, and 7 × 11 = 77 and 7 × 12 = 84, so it is not in the 7s. 79 is prime. ✓

Watch out. Between 60 and 80 does not include 60 or 80. The primes are never even (except 2) so you can skip every even number.

Watch out

Do not forget that 1 is not prime, and that 2 is prime (even though it is even). Also, numbers that are odd are not always prime: 9, 15, 21, 27 and 33 are odd but composite. And test with 7: 49, 77 and 91 are not in the 2, 3 or 5 times tables, but they are multiples of 7.

Exercise 3E  Prime and composite numbers

Non-calculator
1
FWrite the factors of each number. Then write whether the number is prime, composite or neither.
(a)1
(b)7
(c)9
(d)11
(e)15
(f)17
2
FWrite down the prime numbers in this list.   2, 9, 11, 15, 17, 21, 23, 27
3
FRemember the prime numbers up to 19.
(a)Write all the prime numbers up to 19.
(b)Fill in the missing primes:   2, 3, ?, 7, ?, 13, ?, 19
4
FMaya is making a sieve. She has shaded the multiples of 2, 3 and 5 (but not the numbers 2, 3 and 5). The numbers that are not shaded are still to be tested.
12345678910
11121314151617181920
21222324252627282930
31323334353637383940
41424344454647484950
51525354555657585960
61626364656667686970
71727374757677787980
81828384858687888990
919293949596979899100
(a)Some numbers that are not shaded are not prime. Write them. (Do not include 1.)
(b)What do these numbers have in common?
5
FUse the tests of divisibility for 2, 3, 5 and 7. Is each number prime?   Write Prime or Not prime.
(a)39
(b)53
(c)57
(d)71
(e)87
(f)89
6
FWrite all the prime numbers between 30 and 50.
7
FEach of these numbers is made by multiplying two prime numbers. Find the two primes.
(a)35
(b)77
(c)91
8
PSI am a prime number between 30 and 50. My digits add up to 7. What number am I?
9
RMia says, “Every odd number is a prime number.” Is Mia right? Give an example to show.
10
RAlways, sometimes or never?
(a)A prime number is odd.
(b)A number with exactly two factors is a prime number.
(c)The sum of two prime numbers is a prime number.
11
RWhich number is the odd one out? Explain.   11    13    17    21
12
RProve it!   Explain why no even number bigger than 2 is a prime number.
13
RAmira says, “51 is prime, because it is not in the 2, 5 or 10 times tables.” Is Amira right?
14
RChallenge!   Find three pairs of prime numbers that add up to 30.

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings