Primality proof for n = 490949:
Take b = 2.
b^(n-1) mod n = 1.
883 is prime. b^((n-1)/883)-1 mod n = 124238, which is a unit, inverse 224088.
(883) divides n-1.
(883)^2 > n.
n is prime by Pocklington's theorem.