Sum of Divisors for OCaml Golf Competition by *yuko*

do input""n:k=n:for i=n^0to n/2k=k+i*!mod(n,i)next:?n,": ",k:loop

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

download

return to the top page