add the math class to generate pi, check for primes and get the next prime