4 ms·
The if part is meant to illustrate the idea, that if P is not a perfect square, then (m+1)^2 will give the nearest perfect square.
by jonsen 12y ago
The if part is meant to illustrate the idea, that if P is not a perfect square, then (m+1)^2 will give the nearest perfect square.