implementation of eratosthenes sieve in C