I was studying Algebra (partially from I.N. Hertstein book). In it, an element is defined as prime $\pi$, if $\pi = ab \implies \text{a or b is unit.}$ However, this is the definition for irreducible elements, isn't it? The definition for primes is as follows: $\text{if}\ p |ab, \text{then}\ p|a \ \text{or}\ p|b$
Further, one of the theorems states that every non-zero element in Euclidean domain R is either unit or a finite product of primes. I understand the proof, which is done in the standard manner, by first showing that dab>da, if b is non-unit, then proceeding by induction on $d(r),\ r \in R.$ However, the proof uses this strange definition for primes, which is really proving that every non-zero element in Euclidean domain R is either unit or a finite product of irreducible elements.
Also, I understand that in a UFD, primes and irreducibles are the same. However, the book uses this previous statement in proving that Euclidean domains are UFD. Only after we have proved that R is a UFD, we can use this fact, can we not? Why does the book use this strange definition? Or is there a misunderstanding by me? Please clear this.