I came across the following statement in my course notes:
Consider $R = \left\{f \in \mathbb{Q}[X] \mid f(\mathbb{Z}) \subset \mathbb{Z}\right\}$ the ring of integer-valued polynomials. Then the ideal generated by $X$ is not a prime ideal.
Isn't this incorrect? I'd argue that $R/(X)$ (where $(X)$ denotes the ideal generated by $X$) is isomorphic to $\mathbb{Z}$, which is an integral domain and thus $(X)$ must be prime.
Rene has already given a wonderful solution, but I'll add this so you can maybe see why your approach doesn't work:
Normally, when we show $A[x]/(x)\cong A$ for a ring $A$, we use the homomorphism $A[x]\to A$, $f\mapsto f(0)$, so the kernel is $(x)$ and the result follows by the isomorphism theorem.
Let's try to do the same in this case. We'll map $R\to\Bbb{Z}$ by sending $f\mapsto f(0)\in\Bbb{Z}$. This is definitely surjective, so if the kernel is $(x)$ then we are done. We definitely have $(x)$ contained in the kernel. However, the reverse inclusion doesn't hold because as Rene has shown, we can find $f$ such that $f(0)=0$ but there is no $g\in R$ such that $f(x)=x\cdot g(x)$.