Added verification of primes

after a potential prime is found on the desired amount of cycles, it
will then validate that the number is indeed prime.