sieve of Eratosthenes prints prime < 1000