Can Sieve of Eratosthenes takes O(N)?

Правка en1, от greedycoder69, 2018-06-18 15:12:06

hey we all know that Sieve of Eratosthenes takes O(N log (log N)) but in one of the article of geeksforgeeks Sieve of Eratosthenes takes O(N) time and they have also provided explanation source code. Here is the link Your text to link here... is it possible in O(N) if yes then explain

Теги #strings, sieve of eratosthenes, o(n), #primes

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский greedycoder69 2018-06-18 15:13:15 30
en1 Английский greedycoder69 2018-06-18 15:12:06 398 Initial revision (published)