Primality proof for n = 127139:
Take b = 2.
b^(n-1) mod n = 1.
5779 is prime. b^((n-1)/5779)-1 mod n = 125855, which is a unit, inverse 33171.
(5779) divides n-1.
(5779)^2 > n.
n is prime by Pocklington's theorem.