Sieve of Eratosthenes in C code