My approach:
There exist $\phi(31-1) = \phi(30) = 8$ primitive roots.
If $x^6 \not\equiv 1$,$x^{10} \not\equiv 1$, and $x^{15} \not\equiv 1$, then $x$ is a primitive root modulo $31$.
$x = 1, 2$ fails this but $x = 3$ passes this, thus $3$ is a primitive root.
I then know that $\{3^0, 3^1, 3^2, \dots, 3^{29}\}$ is a residue system mod $31$.
How can I then determine which elements are the primitive roots of this set?