Games
/sieve-of-primes
Sieve of primes
Apply the sieve of Eratosthenes one step at a time. Mark only the still-active multiples of the indicated prime; primes remain at the end.