Compute (approximations to) integer square roots.