Primality proof for n = 47119:
Take b = 2.
b^(n-1) mod n = 1.
7853 is prime. b^((n-1)/7853)-1 mod n = 63, which is a unit, inverse 28421.
(7853) divides n-1.
(7853)^2 > n.
n is prime by Pocklington's theorem.