Description: The generalized Pocklington's theorem. If N - 1 = A x. B where B < A , then N is prime if and only if for every prime factor p of A , there is an x such that x ^ ( N - 1 ) = 1 ( mod N ) and gcd ( x ^ ( ( N - 1 ) / p ) - 1 , N ) = 1 . (Contributed by Mario Carneiro, 2-Mar-2014)
Ref | Expression | ||
---|---|---|---|
Hypotheses | pockthg.1 | |
|
pockthg.2 | |
||
pockthg.3 | |
||
pockthg.4 | |
||
pockthg.5 | |
||
Assertion | pockthg | |