Let G be a finite group with no subgroups apart from {1G} and G.
(a) Show that G is cyclic.
(b) Show that the number of elements in G is either 1 or a prime number.
Any ideas how can I solve the first question?
I was thinking to use Lagrange's theorem stating that the order of G must divide the order of {1G} and G. As G has no other subgroups, the order of G isn't divided by any other number. As the only numbers that have only 2 divisors (1 and itself) are prime numbers, therefore the order of G is a prime number. And we know that if the order of a group is a prime number then the group is cyclic.
Moreover, regarding the second one, is it enough to say that using (a) we know that a group is cyclic if its order is a prime number, therefore the number of elements in G is a prime number.