Aliquot sequence classifications: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: reduced the font size for the output section.) |
(→{{header|Wren}}: Stat -> Nums) |
||
Line 3,676: | Line 3,676: | ||
{{libheader|Wren-math}} |
{{libheader|Wren-math}} |
||
<lang ecmascript>import "/fmt" for Conv, Fmt |
<lang ecmascript>import "/fmt" for Conv, Fmt |
||
import "/math" for Int, |
import "/math" for Int, Nums |
||
class Classification { |
class Classification { |
||
Line 3,701: | Line 3,701: | ||
var seq = [k] |
var seq = [k] |
||
while (true) { |
while (true) { |
||
last = |
last = Nums.sum(Int.properDivisors(last)) |
||
seq.add(last) |
seq.add(last) |
||
var n = seq.count |
var n = seq.count |