Let $p$ be a prime number. I could already show, that $\mathbb{Z}[\sqrt{-2}]$ is an euclidean domain and that $$p\text{ reducible }\Leftrightarrow\text{ }p=a^2+2b^2\text{ for some $a,b\in\mathbb{Z}$.}$$
Now I wonder how to prove
$$p\equiv 1,2,3\text{ mod }8 \Rightarrow p=a^2+2b^2\text{ for some $a,b\in\mathbb{Z}$.}$$
Maybe there is a possibility to show
$$p\equiv 1,2,3\text{ mod }8 \Rightarrow p\text{ reducible }?$$
$p$ splits iff $$\left(\frac{-2}{p}\right)=1$$ That is either $$\left(\frac{-1}{p}\right)=1, \left(\frac{2}{p}\right)=1$$ in which case $p\equiv 1(\mod 8)$, or $$\left(\frac{-1}{p}\right)=-1, \left(\frac{2}{p}\right)=-1$$ in which case $p\equiv 3(\mod 8)$