Proper divisors: Difference between revisions

m
m (added a category)
Line 1,818:
return
}
for x in 1..(^n-1) {
if n % x == 0 {
yield x
Line 1,832:
for i in 1..20000 {
constlet count = properDivs(i).len()
if count > max {
set (num, max) = (i, count)
Anonymous user