Skip to content

Commit

Permalink
Correct the error message for none prime power order
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVeka authored and mhostetter committed Jul 5, 2024
1 parent f49b458 commit ff83d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/galois/_fields/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def GF(
verify_isinstance(order, int)
p, e = factors(order)
if not len(p) == len(e) == 1:
s = " + ".join([f"{pi}**{ei}" for pi, ei in zip(p, e)])
s = " * ".join([f"{pi}^{ei}" for pi, ei in zip(p, e)])
raise ValueError(f"Argument 'order' must be a prime power, not {order} = {s}.")
characteristic, degree = p[0], e[0]
elif len(args) == 2:
Expand Down

0 comments on commit ff83d5e

Please sign in to comment.