On a theorem of Hermite and Hurwitz