Skip to main content
. 2024 Apr 5;26(4):316. doi: 10.3390/e26040316
Algorithm 1. Calculation of the integer square root of x by rolling back from s0.
Input: x,s0
Output: s // integer square root of x
Initialization: sis0
Dsi2x
While  (D>0) Do
sisi1
DD(si1)1
End Do
ssi