Primality proof for n = 285457:
Take b = 2.
b^(n-1) mod n = 1.
313 is prime.
b^((n-1)/313)-1 mod n = 37537, which is a unit, inverse 170170.
19 is prime.
b^((n-1)/19)-1 mod n = 141744, which is a unit, inverse 11888.
(19 * 313) divides n-1.
(19 * 313)^2 > n.
n is prime by Pocklington's theorem.