Another couple percent speedup for very small factor inputs
Fix forcomposite with endpoint past max prime
forcomposites, edge cases and performance
Speedup for znprimroot
Replace complicated invmod with simpler version that works properly for all n