Primality proof for n = 7817573:
Take b = 2.
b^(n-1) mod n = 1.
151 is prime.
b^((n-1)/151)-1 mod n = 6326917, which is a unit, inverse 6002329.
43 is prime.
b^((n-1)/43)-1 mod n = 5487877, which is a unit, inverse 3904696.
(43^2 * 151) divides n-1.
(43^2 * 151)^2 > n.
n is prime by Pocklington's theorem.