s,m,i,j;f(x){long long a=s,b=x,c=x,d=2;for(;c%d<1?c/=d,b-=c%d?b/d:0:d*d++