Find all solution of $x^2 + 1 \equiv 0$ (mod 103459).
103459 is the product of two primes 307 and 337.
What I do is to rewrite the equation as:
$x^2 + 1 \equiv 0$ (mod 307)
$x^2 + 1 \equiv 0$ (mod 337)
Then we have:
$x^2 + 1 = 307m$
$x^2 + 1 = 337n$
and hence $307m = 337n$ $=>$ $m=337, n=307$
$x^2 = 307m - 1 = 103459 - 1 = 103458$
I stop here because it I feel it's not the way to do it.
Is there any better way to solve this question?