yshshrm / Data-Structures-And-Algorithms-Hacktoberfest18

List of data structures and algorithms. Feel free to contribute under Hacktoberfest '18!
204 stars 1.1k forks source link

finding primes using seive #1627

Open shwetankverma13 opened 4 years ago

shwetankverma13 commented 4 years ago

using this algo one can find prime in NloglogN time which will only be calulated once.....prime checking will done in O(1) then... this will work fine upto numbers= 10^6