Competitive-Programming
Competitive-Programming copied to clipboard
In Program PrimeNumberSieve.java has a bug
17.for (int i = 2; i < n; i += 2) {
//In this part, condition will be i<=n or else it will also
prints the last value as prime in case of even number(range)
18. touched[i] = true;
19. }