NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

Sieve of Eratosthenes method, for computing prime number

Open keshav304 opened this issue 6 years ago • 7 comments

Algorithm: In mathematics, the sieve of Eratosthenes is an ancient algorithm for finding all prime numbers up to any given limit.

It does so by iteratively marking as composite (i.e., not prime) the multiples of each prime, starting with the first prime number,

The multiples of a given prime are generated as a sequence of numbers starting from that prime, with a constant difference between them that is equal to that prime.

This is the sieve's key distinction from using trial division to sequentially test each candidate number for divisibility by each prime.

Languages Supported: Python.

  • C [@atarax665 ]
  • C++ [ Assigned to @asaxena012 ]
  • Java [@Himanshu70565 ]
  • Javascript
  • Python [ Assigned to @keshav304 ]

I would like to work on this issue using Python.

keshav304 avatar Jun 27 '20 05:06 keshav304

@HarshCasper @ricardoprins Please assign this issue to me in C++. Thanks.

asaxena012 avatar Jun 27 '20 06:06 asaxena012

Thanks for making this Issue @keshav304 and carrying the true spirit of Open-Source 👀

I have assigned the Issue in C++ to @asaxena012 and in Python to @keshav304. You can start working on it now.

HarshCasper avatar Jun 27 '20 11:06 HarshCasper

@HarshCasper I would like to work in java.

Himanshu70565 avatar Jun 28 '20 04:06 Himanshu70565

I would like to take this issue in C.

atarax665 avatar Jun 28 '20 16:06 atarax665

Whoever is working on this, you'll get a special mention if you implement not only the original sieve, but also some of its variations :D

mar-galho avatar Jun 28 '20 23:06 mar-galho

@Himanshu70565 and @atarax665 , game on!

mar-galho avatar Jun 28 '20 23:06 mar-galho

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions!

github-actions[bot] avatar Aug 28 '20 00:08 github-actions[bot]