A probabilistic polynomial-time algorithm for computing the square root of a number

, where

odd,

is a prime number, is described. In contrast to the Adleman, Manders, and Miller algorithm, this algorithm gets faster as s grows. As with the Berlekamp-Rabin algorithm, the expected running time of the algorithm is independent of

. However, the algorithm presented here is considerably faster for values of

greater than

.