add test to make sure that primes can be recalculated