Primality proof for n = 100517:
Take b = 2.
b^(n-1) mod n = 1.
1933 is prime. b^((n-1)/1933)-1 mod n = 16847, which is a unit, inverse 34158.
(1933) divides n-1.
(1933)^2 > n.
n is prime by Pocklington's theorem.