I saw a problem from KMO(Korean Math Olympiad). The problem states:
$21^{9508} + 21^5 + 1$ is a product of two primes. Find the smaller one.
I couldn't solve it, so I saw the answer. It was $463 = 21^2 + 21 + 1$. Now I got the factorization
$21^{9508} + 21^5 + 1 = (21^2 + 21 + 1)(21^{9506} - 21^{9505} + 21^{9503} - 21^{9502} + \cdots + 21^2 - 21) + (21^2 + 21 + 1)(21^3 - 21^2 + 1).$
But how can I know $\frac{21^{9508} + 21^5 + 1}{463}$ is a prime? I really have no idea...
Edit:
The original problem does not say there is an assumption, so I believed the primality of this number.
Definitely there is no known general algorithm to test the primality of such a large number in some "reasonable" time (and space).
So is there any briliant way to prove this is a prime or do we just have to believe this is a prime (so that the question might be erroneous)?