Non trivial powers Revisted by nn

for(;r=Math.sqrt(l=readline());print(s))for(s=l+' =',i=-~r,f=i<0,i=f?3:i;i-->2;v==1<n?s+=' '+(f?r:i)+'^'+n:0)for(v=f||l,n=2*f;v%i<1;n++)v/=i

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page