Proth's theorem

Proth's theorem states that a Proth number N = k·2ⁿ + 1, with odd k < 2ⁿ, is prime if and only if some integer a satisfies a^((N−1)/2) ≡ −1 (mod N).

Connect