Problem: Suppose that $p$ is a prime, and $z$ is some positive integer. If $p^4 | z^2$, then $p^2 | z$.
Thoughts:
If for some positive integer $a$, that $p^4 a = z^2$, then necessarily $p^2 \sqrt{a} = z$, so that if my desired conclusion is correct, then $a$ would have to be a perfect square. How can I show this is true?
Edit: I know that if $gcd(p^4, a) = 1$, then necessarily $a$ is a square.
I've tried to construct a proof based "prime"-arily on the defining property of primes:
$p \mid ab \Longrightarrow [p \mid a] \vee [p \mid b] \tag 0$
and the fact that cancellation applies in the integral domain $\Bbb Z$; here's what I got:
$p^4 \mid z^2 \Longrightarrow p \mid z^2; \tag 1$
$p \mid z^2 \Longrightarrow p \mid z \Longrightarrow z = py; \tag 2$
$z = py \Longrightarrow z^2 = p^2y^2 \tag 3$
$p^4 \mid p^2y^2 \Longrightarrow p^2y^2 = p^4x \Longrightarrow y^2 = p^2x; \tag 4$
$y^2 = p^2x \Longrightarrow p \mid y^2 \Longrightarrow p \mid y \Longrightarrow y = wp; \tag 5$
$y = wp \Longrightarrow z = p^2w \Longrightarrow p^2 \mid z. \tag 6$
$OE\Delta$.