Anonymous user
Multiplicative order: Difference between revisions
→{{header|Julia}}: updated factors() function
(→{{header|Julia}}: updated factors() function) |
|||
Line 548:
=={{header|Julia}}==
(Uses the <code>factors</code> function from [[Factors of an integer#Julia]].)
<lang julia>function factors(
f =
f = reduce(vcat, f, [f*p^j for j in 1:e])
end
end
|