Skip to main content
1 of 3
Martin
  • 1.1k
  • 6
  • 13

Primes of the form $p=x^2-ny^2$

I want to know which primes $p$ can be written in the form $p=x^2-ny^2$ for given $n \in \mathbb{N}$. If $n$ is squarefree, $n \not\equiv 1 \mod 4$ and $\mathbb{Z}[\sqrt{n}]$ is a principal ideal domain, this has been answered here. Is anything known about the other cases?

Martin
  • 1.1k
  • 6
  • 13