answered 2 years ago
Like this?
F = GF(5^7) gamma = F.multiplicative_generator() for j in (1..10): print(j, (gamma^j).minpoly())