Sum of Divisors for OCaml Golf Competition by nn

for(;v=readline();print(v+':',s))for(s=i=0;i++*i<v;)s+=v%i?0:i*i<v?i+v/i:i

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

download

return to the top page