Arithmetic derivative by rotary-o

using C=System.Console;class M{static void Main(){foreach(var s in C.ReadLine().Split()){int i,j,k=2,n=0;var b=int.TryParse(s, out i);for(j=i;j/2!=0;)if(j%k++==0){n+=i/--k;j/=k;}C.WriteLine(b?""+n:"Wait, that's not a number...");}}}

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