Version 3

Added memory buffer of primes, improving performance.