Primality proof for n = 853291:
Take b = 2.
b^(n-1) mod n = 1.
499 is prime.
b^((n-1)/499)-1 mod n = 584529, which is a unit, inverse 434170.
19 is prime.
b^((n-1)/19)-1 mod n = 135090, which is a unit, inverse 378034.
(19 * 499) divides n-1.
(19 * 499)^2 > n.
n is prime by Pocklington's theorem.