attempt to speed up sieve of primes.