Show that if $p \equiv 1 \pmod 6$ then there exist integers $a$ and $b$ such that $p = a^2 + 3b^2$.
Let $p$ be a prime such that $p \equiv 1,3 \pmod 8$.
There exists $c \in \mathbb{Z}$ such that $c^2 \equiv −2 \pmod p$.
Define $L=\{(x,y) \in \mathbb{Z^2} \mid x\equiv cy \pmod p\}$ and we know that $(a,b) \in L \implies a^2+2b^2 \equiv 0 \pmod p$.
Let $S = \{(x,y) \in \mathbb{R^2} \mid x^2+2y^2<2p\}$. S has area $\pi p \sqrt{2}$ and there exist integers $a$ and $b$ such that $p = a^2 + 2b^2$ using Minkowski's theorem.
I have to use a similar argument to the above and use the hint below.
Hint: first prove that $2p = a^2 + 3b^2$ has no solutions for such primes $p$.