Primorial Of a Number
Last updated
Was this helpful?
Last updated
Was this helpful?
find primes
if parameter less than 1 return 0
set variable primes = [2], currentNum = 3
trying each primes modulo calculate and if all modulo remainder not 0 that's prime.
add to that prime to *primes* and move to next(n+1) number until
find primes size same with input
factorial of process-1