This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingConcept theory, tags and interview notes for Sieve of Eratosthenes.
What this asks
Build the list of primes up to n by crossing out multiples.
Mark every number prime, then for each surviving prime cross its multiples starting at p × p.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing