Sieve of Eratosthenes in action.