Primality proof for n = 27213313:
Take b = 2.
b^(n-1) mod n = 1.
2531 is prime.
b^((n-1)/2531)-1 mod n = 4345717, which is a unit, inverse 26812476.
7 is prime.
b^((n-1)/7)-1 mod n = 24913557, which is a unit, inverse 13198165.
(7 * 2531) divides n-1.
(7 * 2531)^2 > n.
n is prime by Pocklington's theorem.