arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2102.06653math.NT
收藏

埃拉托色尼筛子和孙达拉姆证明筛子的发展

Development of sieve of Eratosthenes and sieve of Sundaram's proof

Ahmed Diab

摘要:

给出了两个生成给定极限内所有素数的算法,它们是Eratosthenes算法的筛法的发展,我们使用两个公式来实现这一发展,其中第一个公式中消除了所有素数2的倍数,第二个公式中消除了所有素数2和3的倍数.利用第一个算法证明了Sundaram算法的筛,并将其改进为更有效的素数生成算法。我们将展示我们将制作的所有算法之间的性能差异,并在运行时间方面筛选Eratosthenes算法。

英文摘要:

We make two algorithms that generate all prime numbers up to a given limit, they are a development of sieve of Eratosthenes algorithm, we use two formulas to achieve this development, where all the multiples of prime number 2 are eliminated in the first formula, and all the multiples of prime numbers 2 and 3 are eliminated in the second formula. Using the first algorithm we proof sieve of Sundaram's algorithm, then we improve it to be more efficient prime generating algorithm. We will show the difference in performance between all the algorithms we will make and sieve of Eratosthenes algorithm in terms of run time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑