## square free

For a fixed positive square-free $D$, under what conditions is the representation $8p = x^{2} + Dy^2$ unique for $p$ prime, assuming that such a representation is possible?