Arithmetic derivative by tails

main(v,n,s,w,p){for(;n=~scanf("%*s%d%1$[^ ]"+!!~n*3,&v);printf(n+2?"Wait, that's not a number...\n":"%d\n",s))for(s=0,w=v,p=2;w%p?w/++p:(s+=v/p,w/=p););}

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