Hint $ $ Divisibility is preserved by association: $ $ if $\,\bar p\sim p\,$ then $\,\bar p\mid a\color{red}\iff p\mid a,\,$ therefore any property that is defined purely by divisibility is also preserved, including primality, viz.
$$\begin{align} \bar p\mid ab \color{red}\iff &\,p\mid ab\\[.2em]
\iff &\,p\mid a\,\ {\rm or}\,\ p\mid b,\ \ \text{by $\,p\,$ prime}\\[.2em]
\color{red}\iff &\,\bar p\mid a\,\ {\rm or}\,\ \bar p\mid b_{\phantom{|}}\\[.6em]
\hline
\text{thus $\ p\,$ prime}\, \Longrightarrow\,&\,\ \bar p\ {\rm prime}\end{align}\qquad$$
Remark $ $ When studying divisibility theory in domains it is often convenient to ignore units by working modulo the unit group, i.e. we consider elements congruent if they are associate. The quotient monoid is known as the reduced monoid and it is the standard place to begin study of factorization in general domains (at least for those properties that are monoid-theoretic). See this answer for further discussion, literature references and examples, e.g. characterizations of UFDs and gcd-domains in terms of their divisibility groups.