Primality proof for n = 9435271:
Take b = 2.
b^(n-1) mod n = 1.
1861 is prime.
b^((n-1)/1861)-1 mod n = 9391192, which is a unit, inverse 6646580.
13 is prime.
b^((n-1)/13)-1 mod n = 8852738, which is a unit, inverse 865631.
(13^2 * 1861) divides n-1.
(13^2 * 1861)^2 > n.
n is prime by Pocklington's theorem.