galois v0.3.2
Released December 18, 2022
Changes
- Added a prime factorization database for
$n = b^k \pm 1$ , with$b \in {2, 3, 5, 6, 7, 10, 11, 12}$ . The factorizations are from the Cunningham Book. This speeds up the creation of large finite fields. (#452)
In [1]: import galois
# v0.3.1
In [2]: %time galois.factors(2**256 - 1)
# Took forever...
# v0.3.2
In [2]: %time galois.factors(2**256 - 1)
Wall time: 1 ms
Out[2]:
([3,
5,
17,
257,
641,
65537,
274177,
6700417,
67280421310721,
59649589127497217,
5704689200685129054721],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
- Added speed-up when factoring powers of small primes. This speeds up the creation of large finite fields. (#454)
In [1]: import galois
# v0.3.1
In [2]: %time galois.factors(2**471)
Wall time: 4.18 s
Out[2]: ([2], [471])
# v0.3.2
In [2]: %time galois.factors(2**471)
Wall time: 2 ms
Out[2]: ([2], [471])
- Added four additional Mersenne primes that were discovered between 2013-2018. (#452)
Contributors
- Matt Hostetter (@mhostetter)
Commits
2a006d1 Add release notes for v0.3.2
5b9d50a Add check in perfect_power()
to see if n is a prime power for small primes
3eb1cb6 Add the Cunningham Book to the acknowledgements
50899c6 Add prime factors database
15e4d96 Clean up conway poly script
458f20e Fix typo in pollard_rho
docstring
c3bbab8 Update database path for Conway poly database
dabb41e Add newly discovered Mersenne exponents