Arithmetic derivative by rotary-o

for(s<-readLine split' ')println(try{var i,j,k,n=s.toInt
k=2
while(j/2!=0)if(j%k==0){n+=i/k
j/=k}else k+=1
n-i}catch{case _=>"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