Sum of Divisors for OCaml Golf Competition by leonid

#!ruby -pl
n=eval$_
1.upto(n**s=0.5){|i|n%i<1&&s+=i*i<n ?i+n/i:i}
$_+=": %d"%s

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top