I tried to use the standard iterative algorithm to compute nth roots.
For instance (111^123)^(1/123).
The standard algorithm computes high powers of the base (in this case 111^123) which takes a lot of time. The algorithm is given here http://en.wikipedia.org/wiki/Nth_root_algorithm
However, I noticed that the same thing using double takes less than a millisecond. So obviously they use some smart ideas. Any hints on this?