I thought I would post an answer anyway since it's a nice problem. The Milnor-Moore theorem (in this context) states that if $X$ is a path-connected $H$-space then $H_*(X) = U(\pi_*(X)\otimes \mathbb Q)$ is isomorphic as a Hopf algebra to the universal enveloping algebra over the Lie algebra $\pi_*(X)\otimes \mathbb Q$ (the Lie bracket is the Whitehead product, and the inclusion of the primitives is induced by the Hurewicz map). Applying this to $X =\Omega S^n$ for $n\ge 2$ we calculate (using spectral sequences for example) that $H_*(X) = \mathbb Q[x]$ as an algebra on a class $x$ in degree $n-1$. For degree reasons, $x$ is primitive. Using the Hopf algebra property we get that $\Delta (x^k)$ is a signed sum of terms of the form $x^i \otimes x^j$ where $i+j = k$.
If $n$ is odd, then $n-1$ is even and therefore $x^k$ is not primitive for $k>1$.
But if $n$ is even, then $n-1$ is odd and we get $\Delta(x^2) = 1\otimes x^2 + x^2 \otimes 1$, the middle terms cancel. For $k>2$, we have $\Delta(x^k) = \Delta(x^2 x^{k-2}) = \Delta(x^2) \Delta(x^{k-2})$, since $x^2$ has even degree, none of the terms cancel, and so we have, at least, a nonzero term of the form $\alpha x^2 \otimes x^{k-2}$. It follows that $x^k$ is not primitive for $k>2$.
Thus, the primitive Lie algebra is just $x$ in degree $n-1$ for $n$ odd and $x, x^2$ in degrees $n-1$ and $2(n-1)$ for $n$ even. Since the Lie algebra is also $\pi_*(\Omega S^n)\otimes \mathbb Q = \pi_{*+1}(S^n)\otimes \mathbb Q$, we get the standard result.
For $n$ odd $\pi_*(S^n)\otimes \mathbb Q = \mathbb Q$ for $* = n$ and zero otherwise.
For $n$ even $\pi_*(S^n)\otimes \mathbb Q = \mathbb Q$ for $* = n, 2n-1$ and zero otherwise.