Scott's formula and Hurwitz groups