  We show that H-spaces with finitely generated cohomology, as an algebra or as
an algebra over the Steenrod algebra, have homotopy exponents at all primes.
This provides a positive answer to a question of Stanley.
