Jump to content

Super-Poulet numbers: Difference between revisions

m
m (syntax highlighting fixup automation)
Line 56:
 
=={{header|Julia}}==
<syntaxhighlight lang="rubyjulia">using Primes
 
divisors(n) = @view sort!(vec(map(prod, Iterators.product((p.^(0:m) for (p, m) in eachfactor(n))...))))[begin:end-1]
4,104

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.