This is one direction of the biconditional in part b of this proposition:
Prove that for every prime, $p$, and for all natural numbers $a$, (a) $\text{gcd}(a,p)=p$ iff $p\mid a$ (b) $\text{gcd}(a,p)=1$ iff $p\nmid a$.
So far for my proof of part b, I have that:
Proposition Part (b): $\text{gcd}(a, p) = 1 \implies p\nmid a$.
Proof: Let us consider one direction of the bi-conditional proposition: $p\nmid a \implies \text{gcd}(a, p) = 1$. Let $b$ be a common divisor of $a$ and $p$. It is enough to show that $b = 1$. We know that $p$ is prime, so if $b \mid p, b = 1$ or $b = p$. If $b = p$, then $p\mid a$ because $b$ is a common divisor of both $a$ and $p$. This is a contradiction, because we assumed that $p \nmid a$. Therefore, $b = 1$.
Now I just need the proof of the other direction; please help me out!
If you wish to prove that $[\gcd(a,p)=1]\Rightarrow [p\nmid a]$ you could equivalently prove $[p\mid a]\Rightarrow [\gcd(a,p)\neq1]$, which I think you will find easier. If you know that $p\mid a$ then both $p$ and $a$ are divisible by $p$, so the $\gcd(a,p)=p$.