Show that the spaces $X=S^2\times S^2$ and $Y=S^2\vee S^2\vee S^4$ are not homotopy equivalent.
I read somewhere that $\pi_1(X)$ and $\pi _1(Y)$ are trivial, and that $X$, $Y$ have isomorphic homology groups. However, the cohomology ring of $X$ is a nontrivial product, while the cohomology ring of $Y$ is trivial. Therefore, $X$ and $Y$ are not homotopy equivalent.
I just have a few questions about this.
I'm trying to figure out the cohomology rings of $X,Y$. I found on Wikipedia that: $H^*(S^2 \times S^2;\mathbb{Z})= \mathbb{Z}$ for degree $0$, $\mathbb{Z}^2$ for degree $2$, and $0$ otherwise.
Also from Wikipedia I found that the cohomology of the wedge sum of connected spaces is the cohomology of the disjoint union of those spaces which is the direct sum of their cohomologies. So for $H^*(Y)$ I got: $H^*(Y) = H^*(S^2) \oplus H^*(S^2) \oplus H^*(S^4) = \mathbb{Z}\oplus\mathbb{Z}\oplus\mathbb{Z}$ for degree $0$, $\mathbb{Z}\oplus\mathbb{Z}$ for degree $2$, $\mathbb{Z}$ for degree $4$, and $0$ otherwise.
From this, the cohomology rings of $X,Y$ are not isomorphic. Hence, $X$ and $Y$ are not homotopy equivalent.
Is this correct at all? Could someone explain to me a few things: (1) is the cohomology ring just a list of the cohomology of the group in different degrees? (2) is what I have here correct for the cohomology of $X$ and $Y$?