Arithmetic derivative by rotary-o

#!ruby -n040
puts~/[^- \d]/?"Wait, that's not a number...":(n=0
i=j=eval$_
k=2
j%k<1?(n+=i/k
j/=k):k+=1while j*j>1
n)

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