Giuga numbers: Difference between revisions
m
→{{header|Wren}}: Changed to Wren S/H
(Added Lua) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 1,867:
Takes only about 0.05 seconds to find the first four Giuga numbers but finding the fifth would take many hours using this approach, so I haven't bothered.
<syntaxhighlight lang="
var inc = [4, 2, 4, 2, 4, 6, 2, 6]
Line 1,938:
{{libheader|Wren-rat}}
This is a translation of the very fast Pari-GP code in the talk page. Only takes 0.015 seconds to find the first six Giuga numbers.
<syntaxhighlight lang="
import "./rat" for Rat
|