math.primes: speedup sieve.