primes functionality, some fixes needed for nthlargestprimefactor
Primes and factors functionality