Sum of Divisors for OCaml Golf Competition by hikaru

main(a,b,c){for(;~scanf("%d",&a);printf("%d: %d\n",a,c))for(b=c=a;--b;)c+=a%b?0:b;}

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

download

return to the top page