Sign in
United Kingdom › MYP Mathematics › Number
Question

Testing for Primes

A5 · B1 · C2 · 8 marks · ~10 min
✦ Created by our AI question engine · answers checked by script Self-marked 0 / 9
How this page works Full help
  1. Read the question and the information above the parts.
  2. Write your working and your answer in the box for each part, with units, as in the exam. Press Enter for a new line.
  3. Check your final line with Check my answer. Use the calculator on the right when you need it.
  4. Mark yourself: open the markscheme and tick each mark you earned.

A prime number has exactly two factors: 1 and itself. Zara is writing a short computer program that decides whether a number is prime by dividing it by smaller primes.

191.1
A2 Level 1–2
[2]Select all the prime numbers in this list.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

51 = 3 × 17, 57 = 3 × 19 and 91 = 7 × 13 are not prime. 53, 59 and 97 have no factors other than 1 and themselves.
53, 59 and 97

Mark yourself

191.2
A2 Level 3–4
[2]Zara's program tests the number 221. Find the smallest prime factor of 221.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

221 is not divisible by 2, 3, 5, 7 or 11. 221 ÷ 13 = 17, so 221 = 13 × 17 and the smallest prime factor is 13.
13

Mark yourself

191.3
A1 · C1 Level 5–6
[2]To test whether 223 is prime, Zara's program only tries the primes up to 14. Explain why this is enough.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

√223 ≈ 14.9. If 223 had two factors both bigger than 14, their product would be at least 15 × 15 = 225, which is more than 223. So any factor pair must include a number of 14 or less, and testing primes up to 14 is enough. (223 is in fact prime.)
15² = 225 > 223, so one factor of any pair must be 14 or less.

Mark yourself

191.4
B1 · C1 Level 7–8
[2]Every whole number can be written as $6n$, $6n + 1$, $6n + 2$, $6n + 3$, $6n + 4$ or $6n + 5$. Justify why every prime greater than 3 is one more or one less than a multiple of 6.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks

Model answer

6n, 6n + 2 and 6n + 4 are even, so divisible by 2. 6n + 3 = 3(2n + 1) is divisible by 3. A prime greater than 3 is divisible by neither 2 nor 3, so it must be 6n + 1 or 6n + 5 = 6(n + 1) − 1: one more or one less than a multiple of 6.
6n, 6n + 2, 6n + 4 are even and 6n + 3 is a multiple of 3, so only 6n + 1 and 6n + 5 (= 6(n + 1) − 1) remain.

Mark yourself

Solves
0
Average rating
–
Open reports
0

Assessment criteria

A
Knowing and understanding
B
Investigating patterns
C
Communicating
D
Applying mathematics in real-life contexts

Quality checks

  • Created by our AI question engine
  • Every number checked by script
  • Published for students