Numbers whose count of divisors is prime: Difference between revisions

m
Line 97:
<lang julia>using Primes
 
ispdc(n) = (ndivs = prod(collect(values(factor(n))).+ 1); ndivs > 2 && isprime(ndivs))
 
foreach(p -> print(rpad(p[2], 8), p[1] % 10 == 0 ? "\n" : ""),
4,102

edits