Primality proof for n = 34429:
Take b = 2.
b^(n-1) mod n = 1.
151 is prime.
b^((n-1)/151)-1 mod n = 6349, which is a unit, inverse 19408.
19 is prime.
b^((n-1)/19)-1 mod n = 27660, which is a unit, inverse 17863.
(19 * 151) divides n-1.
(19 * 151)^2 > n.
n is prime by Pocklington's theorem.