So I'm working with algebra and have to deal with this problem. I can't see the logic to start the problem. I know the definition of a group and cyclic group. Any suggestion would be so great! I'm using the book from Hungerford.
Problem: Prove that if $G$ is a group with $|G|\geq2$ and no subgroups except for the two trivial ones (i.e. $\{e_G\}$ and $G$) then $G$ is cyclic and of prime order.
If $|G| \geq 2$, then $G$ has some prime factor $p$. By Cauchy's theorem, $G$ has an element $g$ with order $p$.
Consider the subgroup generated by $g$. This subgroup is a cyclic group of $p$ elements. But since the only nontrivial subgroup is $G$ itself, we conclude that this subgroup is indeed $G$, and so $G$ is cyclic with prime order.