- class property galois.FieldArray.is_prime_field : bool
Indicates if the finite field is a prime field, having prime order.
Examples¶
In [1]: galois.GF(2).is_prime_field Out[1]: True In [2]: galois.GF(2**8).is_prime_field Out[2]: False In [3]: galois.GF(31).is_prime_field Out[3]: True In [4]: galois.GF(7**5).is_prime_field Out[4]: False