k,j;main(i){for(;~scanf("%d",&i);j=!printf("%d: %d\n",i,k))for(k=i;++j<i;)k+=i%j?0:j;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page