Only nine imaginary quadratic fields are unique factorization domains: $\mathbb Q (\sqrt{-1})$, $\mathbb Q (\sqrt{-2})$, $\mathbb Q (\sqrt{-3})$, $\mathbb Q (\sqrt{-7})$, $\mathbb Q (\sqrt{-11})$, $\mathbb Q (\sqrt{-19})$, $\mathbb Q (\sqrt{-43})$, $\mathbb Q (\sqrt{-67})$, and $\mathbb Q (\sqrt{-163})$. I call these the Heegner domains. Only the first five of these fields are norm-Euclidean. Integers in some of these fields have names or nicknames: the Gaussian, Hippasus, Eisenstein, and Kleinian integers. I wish I knew what to call the $\mathbb Q (\sqrt{-11})$ integers.
Correct me if I'm wrong, but I think I already know how to calculate whether a given rational prime decomposes in each of these fields. One simply finds the rational prime's residue, modulo the field's fundamental discriminant. Its congruence or non-congruence with any residue of a small enough perfect square, modulo the same discriminant, indicates whether the rational prime decomposes in the field.
Yet there could be a problem even with what I think I know. I'm not sure how to handle the case of a rational prime that is ramified in a given field. The online sources that explain such cases typically assume prior knowledge well in advance of my own.
What I mainly wish to ask, though, is how to find the complex factorizations of rational primes over all norm-Euclidean imaginary quadratic fields where they decompose. Does a rational prime's residue, modulo a field's fundamental discriminant, help to determine this? Is there a form of notation for each field, like the $\omega$ notation for Eisenstein integers, that can help to make the complex factorization of rational primes within the field more straightforward? Or is polar form adequate?
Should I also be asking how to find the complex factorization of a rational prime that's ramified in a given imaginary quadratic field? Does the procedure that I seek for finding complex factorizations also apply to the $\mathbb Q (\sqrt{-19})$, $\mathbb Q (\sqrt{-43})$, $\mathbb Q (\sqrt{-67})$, and $\mathbb Q (\sqrt{-163})$ domains, even though they are not norm-Euclidean?
I'm asking because I want to list, for some relatively small rational primes, all the complex factors they have in the Heegner domains, or at least the norm-Euclidean Heegner domains. If this can be done with ordinary spreadsheet formulas, then so much the better!