Kummer-Dedekind says the following:
Let $K = \mathbb{Q}(\theta)$ for some $\theta \in \mathcal{O}_K$ with minimal polynomial $f \in \mathbb{Z}[T]$. Let $p$ be a prime with $p \not \mid [\mathcal{O}_K : \mathbb{Z}[\theta]]$. If $f$ reduced mod $p$ factors as $\bar{f} = \prod_{i = 1}^k \bar{g_i}^{e_i}, e_i \geq 1$ where each $\bar{g}_i \in \mathbb{F}_p[T]$ are distinct, monic and irreducible, then $(p) = \prod_{i = 0}^k P_i^{e_i}$ where $P_i = (p, g_i(\theta)) \leq \mathcal{O}_K$ are distinct primes in $\mathcal{O}_K$, where $g_i \in \mathbb{Z}[T]$ are monic with reduction $\bar{g}_i$ mod $p$.
What happens when I need to factorise $(2)$? For example, I'm trying to compute the cardinality of the ideal class group of $\mathbb{Q}(\sqrt{-23})$ and it would be good to be able to factorise $(2)$, but $-23 \equiv 1 \mod 4$ so $[\mathcal{O}_K : \mathbb{Z}[\sqrt{-23}]] = 2$, so can't use Kummer-Dedekind.
Is there a fix to this?