Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Pocklington's theorem"
(update M.Kamada website) |
(Adding to new subcategory) |
||
Line 20: | Line 20: | ||
*[[Wikipedia:Pocklington_primality_test#Pocklington_criterion|Pocklington primality test]] | *[[Wikipedia:Pocklington_primality_test#Pocklington_criterion|Pocklington primality test]] | ||
*[https://stdkmd.net/nrr/pock/ 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. | *[https://stdkmd.net/nrr/pock/ 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. | ||
− | [[Category: | + | |
+ | [[Category:Deterministic primality tests]] |
Latest revision as of 01:15, 11 August 2024
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.