Sum of Divisors for OCaml Golf Competition by *yuko*

do1;read*,n;k=0;do2 i=1,n;2 k=k+n/i*i/n*i;1 print'(i0h:xi0)',n,k;end

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

download

return to the top page