You have the following theorem :
> Let $k \in \mathbb{Z}^+$ be squarefree, such as $k=1,2 \pmod{4}$, and suppose that the ring $\mathbb{Z}[\sqrt{-k}]$ has the following property : $\forall x,y,z \in \mathbb{Z}[\sqrt{-k}]$, such as $
But you can not apply this theorem directly because the property about $\mathbb{Z}[\sqrt{-37}]$ is not met, but you prove that the property is met on the ring of the algebraic integers in $\mathbb{Z}[\sqrt{-37}]$. See this paper for more details : Paper on Mordell's equation and another one.