Primality proof for n = 407969:
Take b = 2.
b^(n-1) mod n = 1.
61 is prime.
b^((n-1)/61)-1 mod n = 214454, which is a unit, inverse 258042.
19 is prime.
b^((n-1)/19)-1 mod n = 310925, which is a unit, inverse 182641.
(19 * 61) divides n-1.
(19 * 61)^2 > n.
n is prime by Pocklington's theorem.