class C{static{for(int n=0,i,s;n++<500;System.out.print(s<n?"":n+"\n"))for(i=s=1;i++<=s;)s+=n%i<1?i:0;}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page