If $G$ is a group of order $p^2$ with $p$ a prime number then $G \simeq C_{p^2}$ or $G \simeq C_p \times C_p$
Here's my attempt
We have $|G| = p^2$, Therefore, $o(g)= 1$ or $p$ or $p^2 \forall g$ where $o(g)$ denotes the order of the element of $g \in G$
Let's differentiate the $3$ cases.
- If $o(g)= 1$ then $g=e$ by unicity of the identity of G
- If $o(g) = p^2$ then $\langle g\rangle = G \implies G \simeq C_p^2$
- Now it's obvious that I have to show that if $o(g)= p$ then $G \simeq C_p \times C_p$ But I'm not sure how to do that.