Adding pre-caching methods for the primes checker algorithm.