KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesThe Pollard p-1 MethodEngineering · Engineering MathematicsLesson 856/884← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginPollard p-1smoothnessgroup orderstage two
On this page

Ask about this page

KEVOS AIThe Pollard p-1 Method

KEVOS knowledge first · trusted web sources when needed

Classical Primality and Factoring

The Pollard p-1 Method

Pollard's p-1 method, its dependence on the smoothness of the group order, and why that dependence is its fatal limitation.

Engineering / MathematicsClassical Primality and Factoring2 min readKV-MATH-0654

Pollard's p-1 method finds a prime factor when the order of the multiplicative group modulo that factor is smooth. It is fast when it works and useless when it does not, and understanding why motivates ECM.

The idea

If one less than a prime factor is smooth, then raising a base to a highly composite exponent gives one modulo that factor, and a GCD reveals it.

If p - 1 divides M, then a^M = 1 (mod p)So the GCD of a to the M minus one with n gives p.

Pollard p-1, stage one

  1. Choose a boundThe smoothness bound for stage one.
  2. Build the exponentThe product of prime powers below the bound.
  3. ExponentiateCompute the base to that exponent modulo the number.
  4. Take a GCDOf the result minus one with the number.
  5. InterpretA non-trivial GCD is a factor.

Stage two

If one less than the factor is smooth except for a single larger prime, a second stage searching over that prime finds it much more cheaply than raising the bound.

Key point

The two-stage structure — smooth part then one large prime — recurs throughout. It appears in ECM stage two and as the large prime variation in sieve methods.

The fatal limitation

Caution

The method works only when one less than the factor happens to be smooth. That is a fixed property of the factor and nothing can be done about it — if the factor is unfavourable, no amount of computation with this method will find it.

This makes p-1 a special-purpose method. It is worth a brief attempt because it is cheap and occasionally spectacular, but it cannot be relied upon.

Why ECM is the answer

Key point

The elliptic curve method replaces the multiplicative group with an elliptic curve group, whose order varies as the curve varies. An unlucky order is fixed by trying another curve, converting a fixed obstruction into a matter of expected running time — see elliptic curves modulo N.

Cryptographic relevance

Note

Because p-1 can factor a modulus whose prime factors have smooth predecessors, key generation standards historically required strong primes — primes with a large factor in their predecessor. ECM undermined the rationale, since it works regardless of that property.

The p+1 variant

Williams' p+1 method uses Lucas sequences to exploit smoothness of one more than the factor instead, in the same relation to p-1 as N+1 tests bear to N-1 tests. It shares the same fundamental limitation.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 8.5. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Related pages

  • The Pollard Rho Factoring Method
  • The Elliptic Curve Method: Stage One
  • Shanks's Class Group Factoring Method

Continue learning

The Pollard Rho Factoring MethodArticle · Engineering MathematicsNEXT LESSON →Shanks's Class Group Factoring MethodArticle · Engineering MathematicsTrial Division and Lehman's MethodArticle · Engineering MathematicsShanks's Square Forms Factorisation (SQUFOF)Article · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®