Reasoning · Grade 5-1 Primes and Divisors

Problem

Count primes with the sieve of Eratosthenes

The numbers 1 to 100 are laid out in a grid. 1 is crossed out, primes found are circled and their multiples crossed. The picture only goes as far as 35. Finish the sieve and count the primes.
Your answer
How to solve
Strategy Make a Systematic List — Testing 100 numbers one at a time for divisors would take forever, so I flip the question round: instead of hunting for primes I cross out the numbers that cannot be prime, and whatever survives is the answer. Crossing out multiples of 2, then 3, then 5, then 7 is fast because each is just skip-counting. Then I list the survivors row by row so nothing is double-counted, and add up ten small counts instead of one big one.
1STEP 1

See what the picture has already done

A crossed number has some other divisor.

crossed out = has a divisor other than 1 and itself
2STEP 2

Work out where the sieve is allowed to stop

Past 10 there is nothing left to cross.

10 × 10 = 100, 11 × 11 = 121 > 100
3STEP 3

Finish the crossing-out from 36 to 100

From 36 to 100 only multiples up to 7 remain to cross.

49 = 7 × 7, 77 = 7 × 11, 91 = 7 × 13
4STEP 4

List the survivors ten at a time

List the survivors ten at a time.

1-10 &: 2, 3, 5, 7 ; 11-20 &: 11, 13, 17, 19 ; 21-30 &: 23, 29 ; 31-40 &: 31, 37 ; 41-50 &: 41, 43, 47 ; 51-60 &: 53, 59 ; 61-70 &: 61, 67 ; 71-80 &: 71, 73, 79 ; 81-90 &: 83, 89 ; 91-100 &: 97
5STEP 5

Add up the ten blocks

The ten blocks add to 25.

4 + 4 + 2 + 2 + 3 + 2 + 2 + 3 + 2 + 1 = 25
6STEP 6

Spot-check the doubtful ones

The tricky 91 and 49 are not primes.

9 + 7 = 16, not a multiple of 3
Answer
25 primes
4 + 4 + 2 + 2 + 3 + 2 + 2 + 3 + 2 + 1 = 25
25 out of 100 means about one number in four up to 100 is prime, which fits what the grid looks like: the first row is crowded with primes (2, 3, 5, 7, 11, 13, 17, 19 — eight of the first twenty) and they thin out steadily, with only one (97) in the last ten. That thinning makes sense, because bigger numbers have more possible factors to trip over. The answer is a count, so it is a whole number with no units, and it must be less than 100 and more than the 11 primes already circled in the picture — 25 sits comfortably in between.
Takeaway

Do not hunt for primes — cross out every multiple of 2, 3, 5 and 7, and the 25 numbers still standing are the primes up to 100.

  • See what the picture has already done
  • Work out where the sieve is allowed to stop
  • Finish the crossing-out from 36 to 100
  • List the survivors ten at a time
  • Add up the ten blocks
  • Spot-check the doubtful ones