Learning goals
- Every prime sweeps an arithmetic progression: tap 2 once and 4, 6, 8, 10, 12, … all eliminate at once. Composites are never prime — they were already someone else's multiple.
- After √100 = 10, no new composites can appear. So once you finish sweeping 7, every remaining cell is guaranteed prime — no more taps needed.
- A composite n always has a factor ≤ √n. That is the entire reason the sieve is fast: from 1 to one million, you only need to sweep primes up to 1000.