摘要:
My first idea wasSieve of Eratosthenes, too. But obviously my coding was not optimal and it exceeded 6s time limit. Then I googled it. Sounds like Miller-Rabin Testing is a much more serious solution.http://www.cnblogs.com/feature/articles/1824667.htmlIt is based on Fermat Little Theory and property 阅读全文
posted @ 2014-02-03 14:02
Tonix
阅读(164)
评论(0)
推荐(0)

浙公网安备 33010602011771号