CharFFE( z ) or CharFFE( vec ) or CharFFE( mat )
CharFFE returns the characteristic of the finite field F containing
the element z, respectively all elements of the vector vec over a
finite field (see Vectors), or matrix mat over a finite field (see
Matrices).
gap> CharFFE( Z(16)^7 );
2
gap> CharFFE( Z(16)^5 );
2
gap> CharFFE( [ Z(3), Z(27)^11, Z(9)^3 ] );
3
gap> CharFFE( [ [ Z(5), Z(125)^3 ], [ Z(625)^13, Z(5) ] ] );
Error, CharFFE: <z> must be a finite field element, vector, or matrix
# The smallest finite field which contains all four of these elements
# is too large for {\GAP}
GAP 3.4.4