Mathtopus
KS3 Number Properties
KS3
Free lesson
Number
Number properties

What Is a Prime Number? | KS3 Maths

A prime number has exactly two factors, 1 and itself. How to tell whether a number is prime, and how far you actually have to test.

A prime number has exactly two factors: 1 and itself. 7 is prime because nothing divides into it except 1 and 7. 12 is not, because 2, 3, 4 and 6 all do.

What Is a Prime Number? | KS3 Maths thumbnail

A prime number has exactly two factors: 1 and itself. The picture that makes it stick comes from factors and multiples: build rectangles out of tiles, and a prime is the number that can only manage one — a single row. Everything else can be folded into a block.

What is a prime number?

A prime number is a whole number greater than 1 whose only factors are 1 and itself.

The definition is easy to recite and hard to picture, so start with the picture. Take 12 tiles: you can lay them out as 1 row of 12, 2 rows of 6, or 3 rows of 4. Three different rectangles, six factors. Now take 7 tiles and try the same thing. Two rows leaves one tile over. Three rows leaves one over. The only arrangement that works is a single row of 7, so the only factors are 1 and 7 — and that is what makes 7 prime.

Three rectangles built from 12 tiles — 1 by 12, 2 by 6 and 3 by 4 — contrasted with the single 1 by 7 row that is the only rectangle 7 tiles can make
12 makes three rectangles and has six factors. 7 makes one, and has two — that is what prime means.

How do you find all the primes up to 30?

You don't test them one at a time. You knock out the ones that can't possibly be prime, and see what survives — a method called a sieve.

Worked example

Find every prime number up to 30

Write the numbers 1 to 30 out, ten to a row, so it reads like a number line folded into three.

Start at 2. 1 is not prime — it has only one factor — so it goes straight away.

2 is prime. But every even number after it has 2 as a factor, so 4, 6, 8, 10 and the rest of that column all go.

3 is prime. Cross out its multiples too: 9, 15, 21 and 27 (6, 12, 18, 24 and 30 have already gone).

5 is prime. Its multiples have nearly all gone already — only 25 is left to cross out.

Now look at 7. Its first multiples — 14, 21, 28 — are all crossed off already, because they sit in the 2 and 3 times tables. The first number 7 could still catch is 7×7=497 \times 7 = 49, which is off the end of the grid.

So nothing left standing has a factor at all, and we can stop.

2, 3, 5, 7, 11, 13, 17, 19, 23, 292,\ 3,\ 5,\ 7,\ 11,\ 13,\ 17,\ 19,\ 23,\ 29

Ten primes below 30.

The numbers 1 to 30 laid out ten to a row, with every composite struck through in terracotta and the ten primes 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29 ringed in green
Cross the multiples of 2, then 3, then 5. Whatever survives is prime.

Notice why it stopped where it did. Once you have crossed out the multiples of every prime up to 5, the next prime is 7 — and 7×7=497 \times 7 = 49 is already past 30. That is the same stopping rule the next example uses on a much bigger number.

How do you check if a number is prime?

Hunt for a factor pair. If you find one that isn't 1×1 \times the number itself, it is not prime. This is where numbers that look prime get caught.

Worked example

Is 51 a prime number?

Try each small number in turn and see whether it divides in exactly.

Does 2 go in? 51 is odd, so no — it cannot split into two equal rows.

Does 3 go in? Yes: 3×17=513 \times 17 = 51.

That is a rectangle — 3 rows of 17 — so it is a factor pair, and 51 has more factors than just 1 and itself.

factors of 51=1, 3, 17, 51\text{factors of } 51 = 1,\ 3,\ 17,\ 51

Four factors, so 51 is not prime. It is composite.

A quick check for 3: add the digits. 5+1=65 + 1 = 6, and 6 is in the 3 times table, so 3 divides into 51.

How far do you have to test?

Finding a factor proves a number is not prime. But proving one is prime looks harder — you cannot try every number below it. You don't have to.

Worked example

Is 97 a prime number?

Work up through the small numbers.

2? 97 is odd. No.

3? Add the digits: 9+7=169 + 7 = 16, which is not in the 3 times table. No.

4? No need to try it. If 4 divided 97 then 2 would too, and 2 has already failed.

5? It doesn't end in 0 or 5. No.

6? Built from 2 and 3 — both already ruled out.

7? 7×14=987 \times 14 = 98 — one too many. No.

8 and 9? Same reasoning as 4: 8 is built from 2s, and 9 from 3s, so neither can find anything 2 and 3 missed.

Now stop. 97 tiles will not quite fill a 10 by 10 square — they fall three short — so 10 is already too big, and 9 is as far as you need to go. Any other factor would need a partner between 2 and 9, and we have tried all of those.

So the only pair left is 1×971 \times 97: 97 is prime.

The nine factor pairs of 36 written in a row, with curved arrows joining each pair to the same pair reversed, a divider after 6 by 6 marked 'stop here', and the pairs beyond it greyed out as repeats
Factor pairs fold back on themselves at the square root. Everything past the fold is a partner of something you already tested.

The rule: keep going while your test number multiplied by itself is still below the number you are testing, and stop as soon as it goes past. For 97, 9×9=819 \times 9 = 81 is below and 10×10=10010 \times 10 = 100 is past, so you go up to 9. For 61, 7×7=497 \times 7 = 49 is below and 8×8=648 \times 8 = 64 is past, so you go up to 7.

That stopping point is the square root of the number, rounded down. If roots are new, they are covered in square and cube roots.

And you only need the primes below it — never the composites. A composite like 6 is built from 2 and 3, so if 6 divided your number then 2 would as well, and you have already tried 2.

Prime numbers up to 50

Worth knowing on sight. There are 15 of them:

235711
1317192329
3137414347

Two things to notice. 2 is the only even prime — every other even number has 2 as a factor, so it has at least three. And the list thins out as the numbers grow, but it never stops: there are infinitely many primes.

Going further

Why 1 is left out. The definition says "exactly two factors", and 1 has only one. That looks like a technicality, but it earns its keep: every whole number above 1 breaks down into primes in exactly one way — 12=2×2×312 = 2 \times 2 \times 3, and no other set of primes multiplies to 12. If 1 counted as prime, you could write 12=1×2×2×312 = 1 \times 2 \times 2 \times 3, or with any number of 1s, and that uniqueness would collapse. Mathematicians defined 1 out of the club to keep it.

How far do the primes go? Forever. Euclid proved it more than two thousand years ago with an argument you can follow: if there were a biggest prime, multiply every prime together and add 1. The result isn't divisible by any prime on your list — each one leaves a remainder of 1 — so either it is a new prime, or it has a prime factor you missed. Either way the list was incomplete. (Well beyond what KS3 asks, but it is one of the neatest proofs in mathematics.)

Where you'll use this next

Primes are the building blocks of every other number, and the next lesson uses that directly: prime factorisation breaks a number down into the primes it is made of. From there, finding the highest common factor and lowest common multiple of two numbers becomes a matter of comparing their prime factors rather than listing everything out.

1.Is 11 a prime number?Show answer

Try the small numbers: 2 doesn't go in (11 is odd), 3 doesn't (1+1=21 + 1 = 2). Next would be 4, but 4×4=164 \times 4 = 16 is already past 11, so we can stop.

Only 1×111 \times 11 works, so yes, 11 is prime.

2.Is 15 a prime number?Show answer

3×5=153 \times 5 = 15, so its factors are 1, 3, 5 and 15 — four of them.

No, 15 is not prime. It is composite.

3.Write down all the prime numbers between 10 and 20.Show answer

Test each: 12, 14, 15, 16, 18 and 20 all have a factor other than 1 and themselves.

11, 13, 17, 19

4.Is every prime number odd?Show answer

No. 2 is prime — its only factors are 1 and 2 — and it is even. It is the only even prime, because every other even number has 2 as a factor.

5.To check whether 53 is prime, what is the largest number you need to test?Show answer

7. 8×8=648 \times 8 = 64, which is already past 53, so anything from 8 upwards would need a partner below 8 that you have already tried.

Testing 2, 3, 5 and 7 is enough — none of them divide 53, so it is prime.

6.Marcus says 91 is prime because it is odd and its digits don't add to a multiple of 3. Is he right?Show answer

No. He has checked 2 and 3 and stopped too early. The largest number he needs to test is 9, since 10×10=10010 \times 10 = 100 is past 91 — so 5 and 7 are still to try.

7×13=917 \times 13 = 91, so 91 has factors 1, 7, 13 and 91. It is composite.

7.Is 143 a prime number?Show answer

12×12=14412 \times 12 = 144 is just past 143, so test up to 11: try 2, 3, 5, 7 and 11.

2, 3, 5 and 7 all fail — but 11×13=14311 \times 13 = 143.

No, 143 is not prime. This is a good example of why the stopping rule matters: the factor doesn't turn up until the very last number you needed to test.

Practise this skill

A free printable worksheet with 15 questions and a full worked answer key. No sign-up needed.

Get the Number Properties Test Paper with Mark Scheme free

Ready to test the whole topic? Your first paper is on us — exam-style questions with a full plain-English mark scheme. See what’s in it.

One free paper per email. Unsubscribe anytime.

More number properties lessons