Let $G$ be abelian and periodic. Let $\mathbb{P}$ be the set of prime numbers, $\pi \subseteq \Bbb P$ and $\pi ^{\prime }=\Bbb P\setminus\pi $.
Let $O_{\pi }\left( G\right) =\left\langle N~:~N\trianglelefteq G\text{ and }% N\text{ is }\pi \text{-subgroup}\right\rangle $.
Is it true that if $G/O_{2^{\prime}}\left( G\right) $ is a $2$-group then $G$ is $2$-group?
In an abelian group, every subgroup is normal. (This is easy to see: if $ab=ba$ for all $a,b\in G$, then surely $aha^{-1}=h\in H$ for all $a\in G,h\in H$.) Thus no matter which set of primes you pick for $\pi$, $G/\mathcal{O}_{\pi^\prime}(G)$ must be a $\pi$-group. You can't conclude anything about $G$ from this.
$\mathcal{O}_\pi(G)$ and $\mathcal{O}_{\pi'}(G)$ are concepts invented to deal with nonabelian groups. They're only interesting when there are $\pi$-subgroups that aren't normal. Let's look at an example.
This example suggests a different definition for $\mathcal{O}_\pi(G)$. With just one prime $p$, $\mathcal{O}_{\{p\}}(G)$ is the intersection of all Sylow $p$-subgroups. Naturally, when Hall $\pi$-subgroups exist, $\mathcal{O}_{\pi}(G)$ is the intersection of those. (A caveat: Hall subgroups don't always exist for every subset of prime divisors when $G$ isn't solvable, in which case we must use the standard definition.) So the purpose of $\mathcal{O}_\pi$ is to teach us how the biggest $\pi$-subgroups overlap, and similarly for $\mathcal{O}_{\pi^\prime}$. You can think of it as the "invariant $\pi$-part of $G$."
So now that you've seen how the $\mathcal{O}_\pi$ and $\mathcal{O}_{\pi^\prime}$ groups are used, let's revisit abelian groups. You can see how the question becomes trivial. If $G$ is abelian, then every subgroup is normal, so there is always a unique Hall $\pi$-subgroup $H_\pi$ of every subset of primes $\pi$. Thus $\mathcal{O}_\pi(G)$ is the intersection of, well, just one group, so $\mathcal{O}_\pi(G)=H_\pi$. It follows that $G/\mathcal{O}_\pi(G)$ is a $\pi'$ group, and in fact $G/\mathcal{O}_\pi(G)\cong \mathcal{O}_{\pi^\prime}(G)$! The same goes for $G/\mathcal{O}_{\pi^\prime}(G)\cong \mathcal{O}_{\pi}(G)$. In other words, the $\pi$ and $\pi^\prime$ parts of an abelian group are completely separable from one another, no matter what which $\pi$ you choose. So $\mathcal{O}_\pi$ and $\mathcal{O}_{\pi^\prime}$ are not very interesting for abelian groups.