I had to write the proof to show that an Ideal $P$ of a commutative ring $R$ is prime Ideal if $R/P$ is an integral domain.
let $a,b\in R$ s.t. $ab\in P$ ,
$$ab+P=P\implies(a+P)(b+P)=P\implies\overline a \overline b=0$$ and as $R/P$ is an integral domain either $a=0$ or $b=0$ $\implies a+P=P$ or $b+P=P$.$\therefore$ either $a\in P$ or $b\in P$.
Hence, $P$ is a prime Ideal.
Am I correct in writing this or am I making some error...
Looks good. Probably worth doing both directions; this is an if-and-only-if statement.