Topics | Register • News • History • How to • Sequences statistics • Template prototypes |
Pocklington's theorem
The Pocklington's theorem invented by H. C. Pocklington in 1914, which is a primality test for the number N, states:
- Let
where q is a prime which does not divide R. If there is an integer a such that and , then each prime factor q of N has the form .
From the previous theorem it can be deduced a primality test when only a partial factorization of N-1 is known:
Let
If f < r, Pocklington's theorem does not return a primality proof, but there is still some hope of proving primality. The theorem implies that every factor p of N satisfies
There are several algorithms which can be used to finish the proof, provided f is big enough. If
Each of these algorithms is more complicated than the last, so it is best to use the simplest one which will work for the value of f you have. For
External links
- Pocklington primality test
- Primality proving program based on Pocklington's theorem by Makoto Kamada. It includes a program written in C language that proves primality of numbers of several thousand digits using this theorem.