有人可以向我解释一种在Python(2.7)中查找数字的所有因子的有效方法吗?
我可以创建算法来完成这项工作,但我认为编码很差,并且执行大量数据的结果需要很长时间.
python algorithm performance factorization python-2.7
algorithm ×1
factorization ×1
performance ×1
python ×1
python-2.7 ×1