Files
SolutionEuler/solutions/0047.PrimesFactors/readme.md

8 lines
574 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

这个问题的核心点是快速质因数分解我使用试除法来解决的在4质数4连续的要求下0.3秒获得解。
在计算5质数5连续的结果时所需时间就不那么理想了。
另外我觉得获得搜索开始的起始点,可能是除了快速计算质因数外,最重要的问题了。
我只是使用最简单的前n个素数积作为起点似乎也不是最好的估计。
这里我只是提供一个简单的假设n质数n连续的数字可能需要从n-1和n-2这两组数的平均数位之和作为搜索的起点.