T

Primes and Composite Numbers

Maths · Y7 Indices
Year 7
Lesson Guide
Explanation
A factor of a number divides into it exactly, leaving no remainder. To find every factor of 24, work upwards from 1 and test each number in turn. One times 24 works, so 1 and 24 are both factors. Two times 12 works, so add 2 and 12. Three eights, so add 3 and 8. Four sixes, so add 4 and 6. Five does not divide 24 exactly, so skip it. When you reach 6 you find 6 times 4, a pair you already have, and that is your signal to stop. Reading the pairs off gives eight factors: 1, 2, 3, 4, 6, 8, 12 and 24. Hunting in pairs like this means you never miss one.
Your Turn
List every factor of 18. Check: 1 × 18, 2 × 9 and 3 × 6 work, 4 and 5 fail, and 6 repeats — so 1, 2, 3, 6, 9, 18.
Watch Out
Do not forget 1 and the number itself — they are always factors. And write each pair down as you go, or you will lose one in the middle.
Explanation
Now count the factors. Twenty-four had eight of them, and any number with more than two factors is called composite. A number with exactly two factors, just 1 and itself, is called prime. Picture it as dots pushed into a rectangle. Seven dots only ever make a single line, one by seven, so 7 is prime. Twelve dots make one by twelve, two by six and three by four, so 12 is composite. Two cases catch everybody out. The number 1 has only one factor, itself, so it is neither prime nor composite. And 2 is prime — the only even prime there is, because every other even number picks up 2 as an extra factor.
Your Turn
Is 13 prime or composite? Check: nothing divides it except 1 and 13, so it has exactly two factors and is prime.
Watch Out
1 is not prime. A prime needs exactly two different factors, and 1 has only one.
Explanation
Here is a way to find all the primes up to fifty without testing each one separately. It is called the Sieve of Eratosthenes. Cross out 1, because it is neither prime nor composite. Circle 2, then cross out every later multiple of 2. Circle the next number still standing, which is 3, and cross out every later multiple of 3. Do the same for 5, then for 7. Everything still standing is prime. You are left with fifteen primes below fifty: two, three, five, seven, eleven, thirteen, seventeen, nineteen, twenty-three, twenty-nine, thirty-one, thirty-seven, forty-one, forty-three and forty-seven. Notice how they thin out as the numbers grow larger.
Your Turn
How many primes are there between 20 and 40? Check: 23, 29, 31 and 37 — four of them.
Watch Out
When you cross out multiples of 2, do not cross out 2 itself. You start crossing from 4 onwards, and the same goes for 3, 5 and 7.
Explanation
Testing whether one number divides another does not always need long division. A number divides by 2 if its last digit is even. It divides by 5 if it ends in 0 or 5, and by 10 if it ends in 0. The clever ones use the digit sum: a number divides by 3 if its digits add to a multiple of 3, and by 9 if they add to a multiple of 9. So 126 divides by 3, because 1 plus 2 plus 6 is 9. For 4, look at the last two digits only — 116 ends in sixteen, which is a multiple of 4, so 116 is too. These tests turn a slow check into a single glance.
Your Turn
Does 351 divide by 3? Check: 3 + 5 + 1 = 9, a multiple of 3, so yes — 351 = 3 × 117.
Watch Out
The digit-sum test works for 3 and for 9, and for nothing else. It tells you nothing about 7, and for 2 you look at the last digit instead.
Explanation
The biggest mistake in this topic is thinking odd means prime. Every prime above two is odd, but plenty of odd numbers are not prime. Nine is three threes. Twenty-one is three sevens. Twenty-five is five fives. Forty-nine is seven sevens. Fifty-one looks convincingly prime until you add its digits, get six, and realise three goes in — fifty-one is three times seventeen. Ninety-one is the champion trap: it survives the two, three and five tests and only falls to seven, because ninety-one is seven times thirteen. So run through two, three, five and seven in that order before you declare anything prime. That short routine catches almost everything you will meet this year.
Your Turn
Is 57 prime? Check: 5 + 7 = 12, a multiple of 3, so 57 = 3 × 19 — composite.
Watch Out
Stopping after the 2, 3 and 5 tests. Both 49 and 91 slip through those three and are only caught by 7.
📌 Key Points — this lesson in a nutshell
  • A factor divides a number exactly, with no remainder. Hunt factors in pairs: 24 = 1 × 24 = 2 × 12 = 3 × 8 = 4 × 6.
  • So the factors of 24 are 1, 2, 3, 4, 6, 8, 12 and 24 — eight of them.
  • A PRIME number has exactly two factors: 1 and itself.
  • A COMPOSITE number has more than two factors.
  • 1 is NEITHER prime nor composite — its only factor is 1.
  • 2 IS prime, and it is the only even prime.
  • The 15 primes below 50 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47.
  • Divisibility tests: 2 (last digit even) · 3 (digit sum) · 4 (last two digits) · 5 (ends 0 or 5) · 9 (digit sum) · 10 (ends 0).
  • Odd does not mean prime: 9, 15, 21, 25, 27, 33, 35, 49, 51 and 91 are all odd and all composite.
  • Before calling a number prime, test 2, 3, 5 and 7 in that order.
Step 1: Introduction
Step 1 of 5
Finding every factor of 24 Work upwards from 1, in pairs 1 × 24 = 24 yes 2 × 12 = 24 yes 3 × 8 = 24 yes 4 × 6 = 24 yes 5 × ? = 24 no whole number 6 × 4 = 24 already have it — STOP What counts as a factor? A factor divides the number exactly, leaving no remainder at all. Every factor comes with a partner: find 3 and you get 8 for free. Stop when the pairs start repeating. That is how you know you have them all. The pairs, drawn as a rainbow — each arc joins two factors that multiply to 24 1 2 3 4 6 8 12 24
Arrange the dots into rectangles 7 dots — PRIME Only one rectangle fits: 1 × 7. Factors: 1 and 7 — exactly two. 12 dots — COMPOSITE 1 × 12, 2 × 6 and 3 × 4 all fit — factors 1, 2, 3, 4, 6, 12. A PRIME number has exactly TWO factors: 1 and itself. A COMPOSITE number has MORE THAN TWO factors. So the whole test is simply: how many factors does it have? 1 is NEITHER prime nor composite — its only factor is 1. 2 IS prime — and it is the only even prime. Every other even number has 2 as an extra factor, so it has at least three. Learn these two special cases now and you will never lose a mark on them.
The Sieve of Eratosthenes — cross out the multiples, keep what is left 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 green = PRIME knocked out by 2 by 3 by 5 by 7 1 = neither Circle 2, cross out every LATER multiple of 2. Then do the same for 3, then 5, then 7. The 15 primes below 50: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47 Notice how they thin out: eight of them are below 20, but only five are in the thirties and forties combined.
Divisibility tests worth memorising 2 the last digit is even: 0, 2, 4, 6 or 8 126 ends in 6 ✓ 3 the DIGITS add to a multiple of 3 126 → 1+2+6 = 9 ✓ 4 the last TWO digits make a multiple of 4 116 → 16 ✓ 5 the last digit is 0 or 5 245 ends in 5 ✓ 9 the DIGITS add to a multiple of 9 621 → 6+2+1 = 9 ✓ 10 the last digit is 0 470 ends in 0 ✓ 126 passes the 2 test AND the 3 test, so 6 divides it too: 126 = 6 × 21. Any number that passes both those tests must divide by 6. There is no easy digit test for 7 — for 7 you just divide and see.
Odd numbers that look prime but are not Every prime above 2 is odd — but plenty of odd numbers are composite. 9 = 3 × 3 15 = 3 × 5 21 = 3 × 7 25 = 5 × 5 27 = 3 × 9 33 = 3 × 11 35 = 5 × 7 39 = 3 × 13 49 = 7 × 7 51 = 3 × 17 57 = 3 × 19 91 = 7 × 13 A routine you can trust: test 2, then 3, then 5, then 7 — in that order. 51: not even, but 5 + 1 = 6, a multiple of 3. Composite — caught on the second test. 91: not even, 9 + 1 = 10 so not by 3, does not end in 0 or 5 — then 7 × 13 = 91. Composite. Do not stop after 2, 3 and 5. That is exactly where 49 and 91 escape.
Was this lesson helpful? Rate this Course
Discussion
Loading comments...