added fast_primes algorithm