Prove $G$, $|G|=n$ is nilpotent $\iff$ $\forall m|n$, $G$ has a normal subgroup of order $m$. I got stuck in the second direction.
One direction: $|G|=n=p_1^{s_1}\cdot ...\cdot p_k^{s_k}$ Where $p_i$ prime. Particularly, $\forall p_i^{s_i}, p_i^{s_i}|n$ and therefore the Sylow-$p_i$ subgroup is unique and normal. Therefore every Sylow-$p$ subgroup is normal and that means $G$ is nilpotent. (There is a theorem\corollary claiming that saying every Sylow-$p$ subgroup is normal is equivalent to saying $G$ is nilpotent.
Other direction: Let $G$ be nilpotent. $|G|=n=p_1^{s_1}\cdot ...\cdot p_k1^{s_k}$ Where $p_i$ prime. Then, Sylow-$p_i$ subgroup is unique and normal. But what about the $p$-subgroups of order such as $p_i^{},p_i^{2},...,p_i^{s_i-1}$? They are subgroups contained in the Sylow-$p_i$ subgroup, and they all divide $n$, but are they normal? How can I show that?