Sieve of Atkin in C++