Primality proof for n = 330563:
Take b = 2.
b^(n-1) mod n = 1.
8699 is prime. b^((n-1)/8699)-1 mod n = 227671, which is a unit, inverse 273322.
(8699) divides n-1.
(8699)^2 > n.
n is prime by Pocklington's theorem.