small sieve of eratosthenes implementation in c