Jump to content

Earliest difference between prime gaps: Difference between revisions

→‎{{header|Wren}}: Edited preamble following task clarification.
m (→‎{{header|Raku}}: Sigh. Left out including the module. Won't work very well without that...)
(→‎{{header|Wren}}: Edited preamble following task clarification.)
Line 136:
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
Judging by the Raku solution, I've assumed that it's the ''absolute value'' of the difference that is to be tested. If not, for the earliest ''positive'' difference > 100,000, we'd have:
Gap 72 starts at 31,397, gap 74 starts at 404,597, difference is 373,200.
 
Unfortunately, my machine doesn't have enough memory to look for the earliest difference > 1 billion.
<lang ecmascript>import "./math" for Int
9,485

edits

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