Sieve of Eratosthenes - 1st implementation in C++