Suppose G is a finite group with the property that every non-identity element has prime order (D3 and D5 are examples of groups with this property). Show that if the center of G, Z(G), is not trivial, then every nonidentity element of G has the same order.