I need to find a general form of a prime number $p$ which divides the polynomial $x^2-6$, i.e. $p$ such that $x^2 - 6\equiv 0\text{ (mod }p)$. By Legendre symbol, I actually need to find a prime p such as $\left(\frac{6}{p}\right) = 1$.
I know that $\left(\frac{6}{p}\right) = \left(\frac{3}{p}\right)\left(\frac{2}{p}\right)$, so there are two options at the moment:
- Both $\left(\frac{3}{p}\right) = 1$ and $\left(\frac{2}{p}\right) = 1$.
- Both $\left(\frac{3}{p}\right) = -1$ and $\left(\frac{2}{p}\right) = -1$.
I'd like to find out how could I find a general form of a prime $p$ which answers the two terms above?
Thanks in advance