Let $G$ and $H$ be abelian groups of order $n$. I want to prove that $G$ is isomorphic to $H$ if and only if for every prime $p\mid n$, Sylow $p$-subgroup of $G$ is isomorphic to Sylow $p$-subgroup of $H$.
One direction is obvious.
How do I show that the other direction, i.e. if Sylow $p$-groups are isomorphic then Groups are isomorphic. The goal of this question is to make easier to verify list of finite abelian groups of order $n$ (up to isomorphism).