I have this question:
Find the primes $p$ such that the equation: $x^{2} + 7x + 39 = 0 $ has a solution modulo $ p $.
if $ p \neq 2 $ so the equation has a solution $ \iff 7^{2} -4\cdot 1\cdot 39 = -107 $ is a square modulo p .
now $ -107 $ is a square modulo p $ \iff (\frac{-107}{p}) = 1$ (legendre symbol) $
Now I got stuck because I can't find a way to decmopose 107 or any other way to continue from here. I really appreciate any help!!