Sum of Divisors for OCaml Golf Competition by kurimura

main(x,y,z){for(;~scanf("%d",&x);printf("%d: %d\n",x,z))for(z=y=x;--y;)z+=x%y?0:y;}

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

download

return to the top page