Arithmetic derivative by rotary-o

enum M{M;System z;{for(String s:new java.util.Scanner(z.in).nextLine().split(" ")){try{long i=new Long(s),j=i,k=2,n=0;for(;j*j>1;)if(j%k++==0){n+=i/--k;j/=k;}s=""+n;}catch(Exception e){s="Wait, that's not a number...";}z.out.println(s);}}}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page