Primality proof for n = 241:
Take b = 7.
b^(n-1) mod n = 1.
5 is prime.
b^((n-1)/5)-1 mod n = 90, which is a unit, inverse 158.
3 is prime.
b^((n-1)/3)-1 mod n = 14, which is a unit, inverse 155.
2 is prime.
b^((n-1)/2)-1 mod n = 239, which is a unit, inverse 120.
(2^4 * 3 * 5) divides n-1.
(2^4 * 3 * 5)^2 > n.
n is prime by Pocklington's theorem.