Professional Documents
Culture Documents
Pollard (P 1)
Pollard (P 1)
Prabal Paul
Department of Mathematics
BITS Goa, Goa
(p − 1) | B!.
a←2
for j ← 2 to B
do a ← aj (mod n)
d ← gcd(a − 1, n)
if 1 < d < n
then return (d)
else return (“failure”)
Example
Suppose n = 15770708441. If one applies the above algorithm
with B = 180, then a = 11620221425 and d = 135979. In fact,
the complete factorization of n into primes is