← LibraryChecking the Condition C_pEngineering · MathematicsLesson 363/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Jogincondition CpJacobi sumcyclotomic congruenceFrobenius

Modern Primality Tests

Checking the Condition C_p

The central congruence condition of the Jacobi sum test, what it asserts, and how it is verified in practice.

Engineering / MathematicsModern Primality Tests2 min readKV-MATH-0660

The condition at the heart of the Jacobi sum test asserts that the candidate acts on Jacobi sums the way a prime would. Verifying it for enough characters is what constrains the divisors.

What the condition says

For a prime, raising a Jacobi sum to the power of the candidate has a predictable effect: it equals a root of unity times the sum with its character argument permuted. The condition asserts exactly this.

J^n = (root of unity) * sigma(J) in the cyclotomic ringsigma the automorphism corresponding to n; must hold if n is prime.

Verification

Verifying the condition

  1. Construct the Jacobi sumIn the cyclotomic ring, from the auxiliary prime and character orders.
  2. Raise to the powerBy binary powering in the cyclotomic ring modulo the candidate.
  3. Apply the automorphismPermute the cyclotomic basis accordingly.
  4. CompareThe two must differ by a root of unity.
  5. Record the rootThe specific root found carries the information used for the divisor constraint.

The arithmetic

Special cases

What passing establishes

Each successful check constrains the possible prime divisors of the candidate to lie in a specific congruence class. Accumulating constraints across all characters leaves only a short list, which the final phase checks directly.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 9.1.4. 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.

Continue learning

Structure of the Jacobi Sum Primality TestArticle · MathematicsNEXT LESSON →Implementing the Jacobi Sum TestArticle · MathematicsGauss Sums and Jacobi SumsArticle · MathematicsThe Goldwasser-Kilian Primality TestArticle · Mathematics