Prove that $\not\exists$ a topological space $X$ such that $\mathbb{R}$ is homeomorphic to $X\times X$.
My approach was to prove by contradiction: say $f:\mathbb{R}\rightarrow X\times X$ be such a homeomorphism. Then we look at $g_i:=\pi_i\circ f$ for $i=1,2$. So, $f=g_1\times g_2$. We know both $g_1$ and $g_2$ are open surjective maps. Clearly $g_i$ can't be one-one but I can't advance from here. If we can show that $\exists r_1,r_2\in \mathbb{R}$ such that $g_i(r_1)=g_i(r_2)$, then we are done. Any help? Any algebraic topology answer is most welcome as well.