AtkinSieve contains implementation of atkin algorithm to find prime numbers.
4 5 6 7 8
# File 'lib/prime_multiplication_table/atkin_sieve.rb', line 4 def nth_prime(n) return Cache[n] if Cache[n] Cache.primes = compute_primes(n) Cache[n] end