Let $f$ be a nonconstant element of ring $\mathbb Z[x]$. Prove that $\langle f \rangle$ is not maximal in $\mathbb Z[x]$.
Let us assume $\langle f \rangle$ is maximal. Then $\mathbb Z[x] / \langle f \rangle$ would be a field. Let $a \in \mathbb{Z}$. Then $a + \langle f \rangle$ is a nonzero element of this field, hence a unit. Let $g + \langle f \rangle$ be its inverse. Then $a g - 1 \in \langle f \rangle$, hence $ag(x)-1 = f(x)h(x)$ for some $h \in Z[x]$, hence $ag(0) + f(0)h(0) = 1$, thus $(a,f(0))=1$ for all $a \in \Bbb Z$, contradiction, hence the proof.
Is my argument correct? Is there any other method?
Let $p\in\mathbb Z$ be a prime such that $p\nmid\text{LC}(f)$, where $\text{LC}(f)$ stands for the leading coefficient of $f$. Moreover $p$ is non-zero in $\mathbb Z[x]/(f)$, hence invertible in $\mathbb Z[x]/(f)$, so there are $g,h\in\mathbb Z[x]$ such that $pg(x)+f(x)h(x)=1$. It follows that $\bar f\bar h=\bar 1$ in $(\mathbb Z/p\mathbb Z)[x]$, and this is impossible since $\deg\bar f=\deg f\ge1$.