Small C++ implementation of the sieve of Eratosthenes