We know that $H^p(S^2 \vee S^4) = H^p(S^2)\oplus H^p(S^4)$ for $p\neq 0$. I want to show that this space has different ring structure than $CP^2$. So, given a generator in $H^2(S^2 \vee S^4)$ I want to cup it with itself and get 0. My idea is to use the generator from $H^2(S^2)$(which obviously is zero when squared). How should I go from here? Is this even the correct idea?
($\vee$ here is one-point intersection).