Factorization in the ring $\mathbb{Z}[x]/(x^2+1)\mathbb{Z}[x]\cong \mathbb{Z}[i]$ is well known. For instance, $5$ and $13$ (and any prime $\equiv 1\pmod{4}$) are no longer prime.
The factorization of $5$ lifts to $\mathbb{Z}[x]/((x^2+1)^2)\mathbb{Z}[x]$, but it isn't a simple consequence of Hensel's lemma. The trouble with using Hensel's lemma is that it requires a form of Bezout's identity, which does not generally hold over $\mathbb{Z}[x]$. Instead, for any two coprime polynomials $a,b\in \mathbb{Z}[x]$, all we know in $\mathbb{Z}[x]$ is that there exists some polynomials $c,d\in \mathbb{Z}[x]$ such that $ac+bd\in \mathbb{Z}-\{0\}$.
For example, $1+2x$ and $1-2x$ are relatively prime, but the "smallest" positive integer that is a linear combination is $$ (1+2x)+(1-2x) = 2. $$ Note that $5=(1+2x)(1-2x) + 4(1+x^2)$, and the coefficient on $(1+x^2)$ is divisible by $2$. This lucky coincidence is what allows us to lift the factorization of $5$.
The factorization of $13$ as $(2+3x)(2-3x)\pmod{(1+x^2)}$ also lifts (as pointed out in the comments below by Johan). Here, the smallest positive integer $\mathbb{Z}[x]$-linear combination of $2+3x$ and $2-3x$ is $4$, and that's not enough. But the smallest $\mathbb{Z}[x]$-linear combination of $2+3x$, $2-3x$, and $1+x^2$ is $1$, which is enough.
Question: Given a monic irreducible polynomial $q(x)\in \mathbb{Z}[x]$, of degree at least $2$, and an integer $n\geq 2$, is there some integer prime $p$ that factors in $\mathbb{Z}[x]/q(x)^n\mathbb{Z}[x]$?
This question arose thinking about this problem.