$x^2+3y^2=p \; \;$ for $p$ prime greater than $3$ has a solution if and only if $p\equiv 1\pmod 3$
I am supposed to use the fact that the class number of $\mathbb Q(\sqrt-3)$ is 1.
I already got the first direction.
Would appreciate it if anyone could point me to the right answer (hints) for the 2nd direction