A very rough draft for a possible fix for #154.
isPrimitiveRoot'2 is essentially just a smart constructor for PrimitiveRoot now, while isPrimitiveRoot2 has virtually the same functionality as before.
In addition, isPrimitiveRoot'2 avoids the potentially expensive factorisation of modulus.
A very rough draft for a possible fix for #154.
isPrimitiveRoot'2
is essentially just a smart constructor forPrimitiveRoot
now, whileisPrimitiveRoot2
has virtually the same functionality as before. In addition,isPrimitiveRoot'2
avoids the potentially expensive factorisation of modulus.Possibly fixes #154.