Arithmetic derivative by orthoplex

def d(n):
 if n<0:return-d(-n)
 for x in range(2,n):
  if n%x<1:return n//x*d(x)+x*d(n//x)
 return n>1
for i in input().split():
 try:print(+d(int(i)))
 except:print("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