The sieve of Sundaram: Difference between revisions

m
(→‎{{header|Raku}}: make it faster)
m (→‎{{header|Wren}}: Minor tidy)
Line 1,701:
{{libheader|Wren-seq}}
I've worked here from the second (optimized) Python example in the Wikipedia article for SOS which allows an easy transition to an 'odds only' SOE for comparison.
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
import "./seq" for Lst
 
var sos = Fn.new { |n|
9,482

edits