Sum of Divisors for OCaml Golf Competition by 51b

: a begin pad dup 6 stdin read-line + while
evaluate dup 0 .r ." : "dup
dup 1 do over i mod 0= i * - loop 0 .r cr repeat
; a

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

download

return to the top page