The set of orders of elements in a finite group