我发现一些实现整数因式分解函数的库。最好是一些流行库中快速的实现,避免重复造轮子。
有这样的库吗?
快速谷歌搜索显示Daniel Fischer的arithmoi包。
primeFactors
104729 * 104723
1
104729 * 88801