Definitions of prime element:
$(1)$ We say $p$ is prime if $p|ab$ it implies $p|a$ or $p|b$ (I don't need definition of unity here)
$(2)$ We say $p$ is prime if $p=ab$ it implies $p|a$ or $p|b$ (I don't need definition of unity here)
Are these two definitions equivalent?
Note: $p = ab$ it may not imply $p|ab$ using definition $(1)$ (as much as I can see because there is no unity)
Motivation: ring without unity with an prime element $p$ such that $ab=p$ but $p$ does not divide $a$ nor it divides $b$ (if possible)