prime sieve in linear time