Giuga numbers: Difference between revisions
m
→{{header|Julia}}
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 384:
=={{header|Julia}}==
<syntaxhighlight lang="
isGiuga(n) = all(f -> f != n && rem(n ÷ f - 1, f) == 0, factor(Vector, n))
Line 407:
</pre>
=== Ad hoc faster version ===
<syntaxhighlight lang="
function getgiugas(numberwanted, verbose = true)
|