An implementation of the Sieve of Eratosthenes