KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesThe Goldwasser-Kilian Primality TestEngineering · Engineering MathematicsLesson 864/884← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginGoldwasser Kilianelliptic curveprimality provingpoint counting
On this page

Ask about this page

KEVOS AIThe Goldwasser-Kilian Primality Test

KEVOS knowledge first · trusted web sources when needed

Modern Primality Tests

The Goldwasser-Kilian Primality Test

Primality proving by elliptic curves with known point counts, its recursive certificate, and the point-counting bottleneck.

Engineering / MathematicsModern Primality Tests2 min readKV-MATH-0662

Goldwasser-Kilian proves primality using an elliptic curve group in place of the multiplicative group. It removes the factoring obstruction of the classical methods and produces a certificate.

The idea

The Pocklington criterion has an elliptic curve analogue: a point of large known order on a curve modulo the candidate certifies primality, provided the order has a suitable large prime factor.

Key point

The decisive advantage over Pocklington-Lehmer is that the group order is not fixed. Where the multiplicative group has order fixed at one less than the candidate, the curve order varies with the curve, so an unfavourable order is fixed by trying another curve.

The algorithm

Goldwasser-Kilian primality proving

  1. Choose a random curveModulo the candidate.
  2. Count pointsUsing Schoof's algorithm.
  3. Test the orderAccept if it factors as a small part times a large probable prime.
  4. Find a pointOf the required order on the curve.
  5. RecurseThe large prime factor becomes the new candidate.
  6. TerminateAt a candidate small enough to test directly.

The certificate

The output is a chain: for each level, a curve, a point, and the factorisation of the order. Verification checks the point arithmetic at each level, which is far cheaper than the search that produced it.

Key point

The recursion halves the candidate size at each step approximately, so the chain has logarithmically many levels. Verification cost is therefore modest even for very large candidates — see certificates.

The bottleneck

Caution

Point counting by Schoof's algorithm is expensive, and it must be repeated for each candidate curve until one with a suitable order is found. This dominates the running time and makes the method slow in its original form.

The Atkin-Morain fix

Key point

Rather than choosing a curve and counting its points, construct a curve whose order is known in advance using complex multiplication. This eliminates point counting entirely and is what makes the method practical — see ECPP.

Complexity

Complexity status of the elliptic curve methods
AspectStatus
Expected running timePolynomial, under heuristic assumptions
Worst caseNot proven polynomial
Certificate verificationPolynomial, unconditionally
Heuristic contentThat curve orders behave like random integers of their size for smoothness purposes

Note

The heuristic concerns only the running time, never the correctness. A certificate that verifies is a proof regardless of how long it took to find, which is the great virtue of certificate-producing methods.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 9.2.1. 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 Group Law on an Elliptic Curve
  • Schoof's Point Counting Algorithm
  • Implementing the Jacobi Sum Test
  • Atkin-Morain Elliptic Curve Primality Proving

Continue learning

Implementing the Jacobi Sum TestArticle · Engineering MathematicsNEXT LESSON →Atkin-Morain Elliptic Curve Primality ProvingArticle · Engineering MathematicsChecking the Condition C_pArticle · Engineering MathematicsPrimality Certificates and Independent VerificationArticle · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®