Sum of Divisors for OCaml Golf Competition by pooq

1input""n:if n s=1:for i=2to n^.5s=s+(i+n/i*!i=n/i)*!mod(n,i)next:?n,": ",s+n:goto 1

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

download

return to the top page