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