Primality proof for n = 326257:
Take b = 2.
b^(n-1) mod n = 1.
971 is prime. b^((n-1)/971)-1 mod n = 244380, which is a unit, inverse 102754.
(971) divides n-1.
(971)^2 > n.
n is prime by Pocklington's theorem.