Background
Theorem 1 An ideal $(f(x))$ in $k[x]$ (single variable commutative polynomial ring over $k$) is a prime ideal if and only if $f(x)$ is an irreducible polynomial over $k$.
Theorem 2 Let $R$ be a commutative ring and let $I\trianglelefteq R$ be an ideal of $R$. Then an ideal $J$ of $R$ with $I\subset J\subset R$ is prime (radical, primary, maximal) if and only if $J/I$ is.
Question
Suppose we have some particular/specific single variable polynomial quotient ring $F[x]/(g(x))$ over the commutative ring $F$, and the ideal $(g(x))$ is generated by the polynomial $g(x)\in F[x]$. I would like to localize this polynomial quotient ring $F[x]/(g(x))$ at the prime ideal $(p(x))$ generated by the polynomial $p(x)\in F[x]$. The issue one has to settle is whether $(p(x))$ is actually a prime ideal of $F[x]/(p(x))$. I would like to know how to decide if an ideal $(p(x))$ is prime in the quotient polynomial ring $F[x]/(g(x))$? Specifically, are there are theorems that one can derive easy computational methods or criteria? From Theorem 1 above, we know how to decide whether an ideal of a single variable polynomial ring is prime but I am not sure if it applies to polynomial quotient ring. As for Theorem 2 above, I am not sure if it is sufficient to know that if $g(x)\in (p(x))$ or equivalently $(g(x))\subset (p(x))$, then we can conclude that the ideal $(p(x))$ is a prime ideal of the quotient ring $F[x]/(g(x))$? Similarly, I am not sure if there is an easy way to show that $(p(x))/(g(x))$ is a prime ideal. Also it is not difficult to come up with cases where $F[x]/(p(x))$ is an integral domain, and hence $(p(x))$ is a prime ideal of $F[x]$ but $(p(x))$ is not a prime ideal of the quotient ring $F[x]/(g(x))$.
I am concentrating on single variable polynomial ring because I understand that for even two variable cases, more advanced techniques from commutative algebra/algebraic geometry might be required.
I also try to do a search about this topic through existing textbooks, online lecture notes and on here that doesn't involve advance notions and ideas from commutative algebra, basically staying within the level of an introductory abstract algebra course but was not able to locate the needed information.
Thank you in advance