Primality proof for n = 47840521:
Take b = 2.
b^(n-1) mod n = 1.
337 is prime.
b^((n-1)/337)-1 mod n = 28864528, which is a unit, inverse 13386653.
13 is prime.
b^((n-1)/13)-1 mod n = 14072982, which is a unit, inverse 19538637.
(13^2 * 337) divides n-1.
(13^2 * 337)^2 > n.
n is prime by Pocklington's theorem.