Which of these is a prime number?
Number toolkit: primes, divisibility, exponents and rational numbers
About 30 minutes · 3 things to learnBy the end you can…
- Recognise primes and composites (1 is neither) and use the divisibility tests for 2, 3, 5, 9 and 11.
- Write repeated factors with exponents and multiply powers.
- Tell rational from irrational numbers (√4 vs √5; terminating or repeating decimals vs non-repeating ones).
Skip-check — 5 questions
Answer all five on rough paper, without a calculator. 5 out of 5 → skip to Topic 2. 4 or fewer → work through this lesson; it takes about 30 minutes.
Without dividing, decide whether 4 572 is divisible by 3 and whether it is divisible by 9.
Answer: Yes and yes
Digit sum , which is divisible by 3 and by 9.
Is 9 581 divisible by 11? Use the divisibility test.
Answer: Yes
Alternating sum of digits from the left: , which is divisible by 11. (.)
Write using exponents, and find its value.
Answer:
Three 2s, two 3s, one 7: .
Which of these is irrational?
You can skip this refresher and go straight on.
Skip to Topic 2 · The Fundamental Theorem of Arithmetic Or read the lesson anywayWork through this toolkit — it takes about 30 minutes. Then try the questions again.
A lock with a 4-digit code has 10 000 possible codes. Banks and websites protect your data with "locks" built from prime numbers hundreds of digits long — multiplying two huge primes is easy, but splitting the answer back into those primes is so hard that no computer can do it in a lifetime. The whole of this chapter rests on that idea: every whole number is built from primes. First, the tools.
- Primes and composites
- A prime number has exactly two factors: 1 and itself. The first few are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29. 2 is the only even prime.
- A composite number has more than two factors, so it can be split into smaller factors: .
- 1 is neither prime nor composite. It has only one factor. (Topic 2 shows why it must be left out.)
Is it prime? To test a number, divide it by the primes 2, 3, 5, 7, 11, … only up to its square root. If none divides it, it is prime. (If a number had a factor bigger than its square root, it would also have a partner factor smaller than the square root — and you would already have found that one.)
- Divisibility tests
| Divisible by | Test | Example |
|---|---|---|
| 2 | last digit is 0, 2, 4, 6 or 8 | 3 718 ✔ |
| 3 | sum of digits is divisible by 3 | 2 145: ✔ |
| 5 | last digit is 0 or 5 | 6 205 ✔ |
| 9 | sum of digits is divisible by 9 | 8 163: ✔ |
| 11 | alternating sum of digits (add, subtract, add, …) is 0 or divisible by 11 | 4 829: ✔ |
A number divisible by 10 must end in 0 — it needs both a 2 and a 5. You will use this idea a lot in Topic 2.
- Exponents
Repeated multiplication is written with an exponent: (the base is 2, the exponent is 4). Three laws are enough for this chapter:
So , and — a power of a product is the product of the powers.
- Rational and irrational numbers
An irrational number cannot be written as . Its decimal goes on for ever without repeating. Examples: , , , and (the pattern grows, so no block repeats).
- The square root of a perfect square is rational: , .
- The square root of a whole number that is not a perfect square is irrational: , . In Topic 5 you will prove this for , , .
- is irrational. is only an approximation to it.
Rational and irrational numbers together make up the real numbers.
Visual
Worked examples
Worked example 1
Five divisibility tests on one number
Question. Test whether 7 425 is divisible by 2, 3, 5, 9 and 11.
Given: the number 7 425. Asked: which of 2, 3, 5, 9, 11 divide it.
Concept used: the divisibility tests. Why it applies: they answer each question without long division.
- 1
The last digit is 5, which is odd. So 7 425 is not divisible by 2.
- 2
Add the digits.
- 3
18 is divisible by 3, so 7 425 is divisible by 3.
- 4
18 is also divisible by 9, so 7 425 is divisible by 9.
- 5
The last digit is 5, so 7 425 is divisible by 5.
- 6
Alternating sum of the digits from the left.
- 7
The result is 0, so 7 425 is divisible by 11.
Check: — it contains 3, 5 and 11 but no 2 ✔.
Answer Divisible by 3, 5, 9 and 11; not by 2.
Common trap: Adding all the digits for the 11-test (, "not a multiple of 11"). The 11-test alternates the signs.
Worked example 2
Is 391 prime?
Question. Decide whether 391 is prime or composite.
Given: 391. Asked: prime or composite?
Concept used: test the primes up to the square root. Why it applies: if 391 has a factor, it has one no bigger than .
- 1
Find the stopping point: and , so is between 19 and 20. Test the primes 2, 3, 5, 7, 11, 13, 17, 19.
- 2
2: the last digit 1 is odd — no. 3: digit sum — no. 5: does not end in 0 or 5 — no.
- 3
7: , remainder 6 — no. 11: — no. 13: , remainder 1 — no.
- 4
17: try it.
- 5
391 has the factors 17 and 23, so it is composite.
Check: ✔.
Answer Composite: .
Common trap: Stopping after 2, 3, 5 and 7 and calling 391 prime. You must test every prime up to the square root.
Worked example 3
Writing products with exponents
Question. (a) Write using exponents and find its value. (b) Write as a product of powers of primes.
Given: two products. Asked: exponent form (and a value).
Concept used: count repeated factors; and . Why it applies: 10 and 6 are not prime, so they must be split first.
- 1
(a)
Four 2s, two 5s and one 7.
- 2
Multiply: , and .
- 3
(b)
Split each base into primes: , .
- 4
Power of a product.
- 5
Add the exponents of 2 () and write the primes in ascending order.
Check: (b) , and ✔.
Answer (a) (b)
Common trap: Multiplying the exponents in step 5 (). When you multiply powers of the same base, you add the exponents.
Worked example 4
Rational or irrational?
Question. Sort into rational and irrational: , , , , , , (one more 0 each time), .
Given: eight numbers. Asked: which are rational.
Concept used: rational = can be written as (decimal terminates or repeats). Why it applies: for each number, try to write it as a fraction.
- 1
— rational.
- 2
20 is not a perfect square (, ), so is irrational.
- 3
— terminates, rational.
- 4
repeats the block "12": it equals — rational.
- 5
— irrational.
- 6
is a fraction of integers — rational (it is close to , but not equal to it).
- 7
never settles into a repeating block — irrational.
- 8
— rational.
Check: ✔; ✔.
Answer Rational: , , , , . Irrational: , ,
Common trap: Calling irrational "because it is ". is irrational; is a rational number that is close to it.
4 examples · they get harder as you go
Quick check
Answer without scrolling upWhich statement is true?
Write as a product of powers of primes.
Answer:
Working: .
If you wrote , you raised only the 7 to the power 3 — every factor inside the bracket gets the exponent.
Which of these numbers is rational?
Key points
- A prime has exactly two factors. 1 is neither prime nor composite; 2 is the only even prime.
- To test for a prime, try dividing by primes up to the square root.
- Divisibility: 2 and 5 → last digit; 3 and 9 → digit sum; 11 → alternating sum. Ending in 0 needs both 2 and 5.
- , , .
- Rational = (decimal terminates or repeats); irrational = decimal never repeats, e.g. , , .
Spotted a mistake? Reporting problems opens with the full site.