Agoh–Giuga conjecture

The Agoh–Giuga conjecture states that an integer n greater than one is prime exactly when 1^(n−1) + 2^(n−1) + ⋯ + (n−1)^(n−1) is congruent to −1 modulo n.

Connect