mhostetter / galois

A performant NumPy extension for Galois fields and their applications
https://mhostetter.github.io/galois/
MIT License
335 stars 31 forks source link

[bug] Prime factorization in the error message #556

Closed MrVeka closed 4 months ago

MrVeka commented 4 months ago

Hi, when trying to create a Galois field of 50 we get this error message : Argument 'order' must be a prime power, not 50 = 2**1 + 5**2.

I think it should have been 2**1 * 5**2 or 2^1 * 5^2, I'ill try to implement the latter if it's ok.

mhostetter commented 4 months ago

Thanks for the report and PR!

mhostetter commented 4 months ago

Released in v0.4.1.