Sum of Divisors for OCaml Golf Competition by kozima

(compile(defun f(n)(format t"~D: ~D
"n(+(loop for k from 1 to(/ n 2)if(=(mod n k)0)sum k)n))))(loop(f(read)))

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

download

return to the top page