ArticleslgStudy

science

Pocklington primality test

Pocklington primality test is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Pocklington primality test rather than just read about it. In short: In mathematics, the Pocklington–Lehmer primality test is a primality test devised by Henry Cabourn Pocklington and Derrick Henry Lehmer. The test uses a partial factorization of N − 1 {\displaystyle N-1} to prove that an integer N {\displaystyle N} is prime.

Key takeaways

  • Pocklington primality test belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Pocklington primality test to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Pocklington primality test from memory before moving on to harder problems.

Reference excerpt

In mathematics, the Pocklington–Lehmer primality test is a primality test devised by Henry Cabourn Pocklington and Derrick Henry Lehmer. The test uses a partial factorization of N − 1 {\displaystyle N-1} to prove that an integer N {\displaystyle N} is prime. It produces a primality certificate to be found with less effort than the Lucas primality test, which requires the full factorization of N − 1 {\displaystyle N-1} .

Pocklington criterion The basic version of the test relies on the Pocklington theorem (or Pocklington criterion) which is formulated as follows: Let N > 1 {\displaystyle N>1} be an integer, and suppose there exist natural numbers a and p such that

Then N is prime. Here i ≡ j ( mod k ) {\displaystyle i\equiv j{\pmod {k}}} means that after finding the remainder of division by k, i and j are equal; i | j {\displaystyle i\vert j} means that i is a divisor for j; and gcd is the greatest common divisor. Note: Equation (1) is simply a Fermat primality test. If we find any value of a, not divisible by N, such that equation (1) is false, we may immediately conclude that N is not prime. (This divisibility condition is not explicitly stated because it is implied by equation (3).) For example, let N = 35 {\displaystyle N=35} . With a = 2 {\displaystyle a=2} , we find that a N − 1 ≡ 9 ( mod N ) {\displaystyle a^{N-1}\equiv 9{\pmod {N}}} . This is enough to prove that N is not prime.

Given N, if p and a can be found which satisfy the conditions of the theorem, then N is prime. Moreover, the pair (p, a) constitute a primality certificate which can be quickly verified to satisfy the conditions of the theorem, confirming N as prime. The main difficulty is finding a value of p which satisfies (2). First, it is usually difficult to find a large prime factor of a large number. Second, for many primes N, such a p does not exist. For example, N = 17 {\displaystyle N=17} has no suitable p because N − 1 = 2 4 {\displaystyle N-1=2^{4}} , and p = 2 < N − 1 {\displaystyle p=2<{\sqrt {N}}-1} , which violates the inequality in (2); other examples include

N = 19 , 37 , 41 , 61 , 71 , 73 , {\displaystyle N=19,37,41,61,71,73,} and 97 {\displaystyle 97} . Given p, finding a is not nearly as difficult. If N is prime, then by Fermat's little theorem, any a in the interval 1 ≤ a ≤ N − 1 {\displaystyle 1\leq a\leq N-1} will satisfy (1) (however, the cases a = 1 {\displaystyle a=1} and a = N − 1 {\displaystyle a=N-1} are trivial and will not satisfy (3)). This a will satisfy (3) as long as ord(a) does not divide ( N − 1 ) / p {\displaystyle (N-1)/p} . Thus a randomly chosen a in the interval 2 ≤ a ≤ N − 2 {\displaystyle 2\leq a\leq N-2} has a good chance of working. If a is a generator mod N, its order is ⁠ N − 1 {\displaystyle N-1} ⁠ and so the method is guaranteed to work for this choice.

Generalized Pocklington test The above version of Pocklington's theorem is sometimes impossible to apply because some primes N {\displaystyle N} are such that there is no prime p {\displaystyle p} dividing N − 1 {\displaystyle N-1} where p > N − 1 {\displaystyle p>{\sqrt {N}}-1} . The following generalized version of Pocklington's theorem is more widely applicable. Theorem: Factor N − 1 as N − 1 = AB, where A and B are relatively prime, A > N {\displaystyle A>{\sqrt {N}}} , the prime factorization of A is known, but the factorization of B is not necessarily known. If for each prime factor p of A there exists an integer a p {\displaystyle a_{p}} so that

then N is prime.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Pocklington primality test

Start with the simplest possible case. Write down what Pocklington primality test claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Pocklington primality test before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Pocklington primality test ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Pocklington primality test

In research
Pocklington primality test appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Pocklington primality test in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Pocklington primality test is common in secondary-school and first-year university syllabi. It links to neighbouring topics Primality tests, so understanding it makes those chapters shorter.
In everyday life
Look for Pocklington primality test outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Pocklington primality test” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Pocklington primality test in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Pocklington primality test means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Pocklington primality test out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Pocklington primality test in simple terms?

In mathematics, the Pocklington–Lehmer primality test is a primality test devised by Henry Cabourn Pocklington and Derrick Henry Lehmer. The test uses a partial factorization of N − 1 {\displaystyle N-1} to prove that an integer N {\displaystyle N} is prime.

Why does Pocklington primality test matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Pocklington primality test?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Pocklington primality test.

Tags

  • Primality tests

Keep exploring