Proposition

Let RR be a ring, and let a,bR.a, b \in R. Then the class of aa in R/(b)R/(b) is prime if and only if the class of bb in R/(a)R/(a) is prime.

Proof

Suppose the class of aa in R/(b)R/(b) is prime.

Then (R/(b))/(((a)+(b))/(b))(R/(b))/(((a)+(b))/(b)) is an integral domain. But

(R/(b))/(((a)+(b))/(b))R/((a)+(b)).(R/(b))/(((a)+(b))/(b)) \cong R/((a)+(b)).

And since (R/(a))/(((a)+(b))/(a))(R/(a))/(((a)+(b))/(a)) is also isomorphic to R/((a)+(b))R/((a)+(b)) we know that (R/(a))/(((a)+(b))/(a))(R/(a))/(((a)+(b))/(a)) is an integral domain.

Thus, ((a)+(b))/(a)((a)+(b))/(a) is a prime ideal in R/(a).R/(a).

Since ((a)+(b))/(a)((a)+(b))/(a) is the image of (b)(b) in R/(a),R/(a), it is generated by the equivalence class of b.b. Being a generator of a prime ideal, the class of bb is prime in R/(a).R/(a).

The converse follows by symmetry.

\blacksquare