algo.
Theme

algorithm 01

Sieve of Eratosthenes

Counts the primes below n by striking out the multiples of each prime.

countPrimes.js

Pick n and press Run.