linbox-team / linbox

LinBox - C++ library for exact, high-performance linear algebra
https://linbox-team.github.io/linbox
GNU Lesser General Public License v2.1
81 stars 28 forks source link

First prime generated by MaskedPrimeIterator is not prime #178

Closed ClementPernet closed 5 years ago

ClementPernet commented 5 years ago

The constructor calls the parent class constructor followed by some masking but not primality checking. Instead it should call generate prime of the MaskedPrimeIterator.