Anonymous user
Proper divisors: Difference between revisions
m
→{{header|Dyalect}}
(Proper divisors in various BASIC dialents) |
|||
Line 2,139:
}
}
for i in 1..10 {
print("\(i): \(properDivs(i).
}
Line 2,147:
for i in 1..20000 {
let count = properDivs(i).
if count > max {
set (num, max) = (i, count)
|