Self numbers: Difference between revisions
Content added Content deleted
(→{{header|RPL}}: sieveless algorithm) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 2,178: | Line 2,178: | ||
Unsurprisingly, very slow compared to the Go version as Wren is interpreted and uses floating point arithmetic for all numerical work. |
Unsurprisingly, very slow compared to the Go version as Wren is interpreted and uses floating point arithmetic for all numerical work. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var sieve = Fn.new { |
||
var sv = List.filled(2*1e9+9*9+1, false) |
var sv = List.filled(2*1e9+9*9+1, false) |
||
var n = 0 |
var n = 0 |