Proper divisors: Difference between revisions
Content added Content deleted
m (added a category) |
|||
Line 1,818: | Line 1,818: | ||
return |
return |
||
} |
} |
||
for x in 1.. |
for x in 1..^n { |
||
if n % x == 0 { |
if n % x == 0 { |
||
yield x |
yield x |
||
Line 1,832: | Line 1,832: | ||
for i in 1..20000 { |
for i in 1..20000 { |
||
let count = properDivs(i).len() |
|||
if count > max { |
if count > max { |
||
set (num, max) = (i, count) |
set (num, max) = (i, count) |