Prove g=5 is a generator of the multiplicative group G of integers modulo p that are coprime to p prime order p=647.
I have approached this using Lagrange's Theorem to show that all non-identity elements of G are generators, hence g=5 is a generator.
Is there another way to use Lagrange's Theorem to prove the statement and if so how?
If not then would the way I have proved it be sufficient?