且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

这是最快的算法来寻找素数?

更新时间:2023-02-26 17:33:43

一个非常快速的实现阿特金的筛是丹·伯恩斯坦的 primegen 。该筛比的效率更高。他的网页有一定的基准信息。

A very fast implementation of the Sieve of Atkin is Dan Bernstein's primegen. This sieve is more efficient than the Sieve of Eratosthenes. His page has some benchmark information.