System.in.eachLine{n=it as int for(s=i=0;i<(d=n/++i);)s+=n%i?0:i<d?i+d:i println"$n: $s"}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page