Integer roots: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 404: | Line 404: | ||
func root(n, x) |
func root(n, x) |
||
for nr = x to 1 step -1 |
for nr = floor(sqrt(x)) to 1 step -1 |
||
if pow(nr, n) <= x |
if pow(nr, n) <= x |
||
see nr + nl |
see nr + nl |