integer-logarithms (hackage): Math.NumberTheory.Logarithms and Math.NumberTheory.Powers.Integer from the arithmoi package.  Also provides GHC.Integer.Logarithms.Compat and Math.NumberTheory.Power.Natural modules, as well as some additional functions in migrated modules.
Keywords: algorithms|library|math|mit|number-theory