If $p$ is a prime $p\mid m\cdot n \implies p\mid m$ or $p\mid n$ by Euclid's lemma. I want to prove that if $p$ is a prime number, and $p = a\cdot b$, then $a = 1$ or $b = 1$.
I know that a prime number does not have any other positive divisors than $1$ and $p$, but I can't seem to get started from here. Is it possible to use gcd?
So let's use that. If $p = a\cdot b$, then $a$ and $b$ are both divisors of $p$, so they are both either $1$ or $p$. And they cannot both be equal to $p$. Thus we conclude that one of them must be $1$. Assuming $a$ and $b$ are positive, of course.