0 Members and 3 Guests are viewing this topic.
I'll make one with .NET, and you can choose whether or not to use it. I hope for the community's sake that people use it if there isn't an alternitave they'd prefer.
x=B*B;db=2*B-1;A=floor(sqrt(N+x));x-=(A*A-N);da=2*A-1;while(x){ x -= (da += 2); do x += (db += 2); while(no_carry);}A = (da+1)/2;B = (db+1)/2;p1 = A-B;p2 = A+B;