Sieve of Eratosthenes except for c, c++