How would I prove the following:
Show that an odd prime $p$ can be written on the form $p=x^2+2y^2$ for some $x,y\in\mathbb Z$ iff $p\equiv_8 1, 3$. Hint: use the quadratic reciprocity and the fact that $\mathbb Z[\sqrt{-2}]$ is a Euclidean domain.
How would I prove the following:
Show that an odd prime $p$ can be written on the form $p=x^2+2y^2$ for some $x,y\in\mathbb Z$ iff $p\equiv_8 1, 3$. Hint: use the quadratic reciprocity and the fact that $\mathbb Z[\sqrt{-2}]$ is a Euclidean domain.
Hints: