The Problem: Show that $x$ is not a prime in $R=\mathbb{Z}+x\mathbb{Q}[x]$, the set of polynomials in $x$ with rational coefficients whose constant term is an integer.
Source: Abstract Algebra, $\mathit{3^{rd}}$ edition by Dummit and Foote.
Clearly we want to show that $x\mid a(x)b(x)$ but $x\nmid a(x)$ AND $x\nmid b(x)$ for some $a(x), b(x)\in R$. I struggle to come up with such a counterexample. Indeed, $a(x)$ and $b(x)$ cannot both have constant terms; but then one of the two is of the form $r_nx^n+\dots+r_1x$, which obviously can be divided by $x$. Any help would be greatly appreciated.