数学 > 数论
[提交于 2021年2月12日]
标题:Development of sieve of Eratosthenes and sieve of Sundaram's proof
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Ahmed Diab[v1] 2021年2月12日 星期五 17:49:58 UTC