Checking-in Primality check and finding n primes algorithms