static uint isqr(uint u)
{
uint a = 2;
int a = 2;
uint b = u/a;
int b = u/a;
while (abs(a - b) > 1) {
a = (a+b)/2;
b = u/a;