The sieve of Sundaram: Difference between revisions
Content added Content deleted
(→{{header|Raku}}: make it faster) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 1,701: | Line 1,701: | ||
{{libheader|Wren-seq}} |
{{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. |
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=" |
<syntaxhighlight lang="wren">import "./fmt" for Fmt |
||
import "/seq" for Lst |
import "./seq" for Lst |
||
var sos = Fn.new { |n| |
var sos = Fn.new { |n| |