Jump to content

Extensible prime generator: Difference between revisions

m
(Initial FutureBasic task solution added)
m (→‎{{header|Wren}}: Minor tidy)
Line 6,586:
=={{header|Wren}}==
This uses a larger wheel than the sieve in the Wren-math module and is a bit faster if one is sieving beyond about 10^7.
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
 
var primeSieve = Fn.new { |limit|
9,482

edits

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