If \begin{document}$ S $\end{document} is a semigroup in \begin{document}$ \mathbb{R}^n $\end{document} that is not separated by a linear functional, then it is known that the closure of \begin{document}$ S $\end{document} is a group. We investigate a similar statement in an infinite dimensional topological vector space \begin{document}$ X $\end{document} . We show that if \begin{document}$ X $\end{document} is an infinite dimensional Banach space, then there exists a semigroup \begin{document}$ S\subset X $\end{document} , not separated by the continuous functionals supported by the closed linear span of \begin{document}$ S $\end{document} , for which the closure of the semigroup is not a group. If \begin{document}$ X $\end{document} is an infinite dimensional Frechet space, then the closure of a semigroup that is not separated is always a group if and only if \begin{document}$ X $\end{document} is \begin{document}$ \mathbb{R}^{\omega} $\end{document} , the countably infinite direct product of lines. Other infinite dimensional topological vector spaces, such as \begin{document}$ \mathbb{R}^{\infty} $\end{document} , the countably infinite direct sum of lines, are discussed. The Semigroup Problem has applications to the study of certain dynamical systems, in particular for the construction of topologically transitive extensions of hyperbolic systems. Some examples are shown in the paper.