Update linear-sieve.cpp
parent
6c25653f10
commit
8e916daae1
|
@ -28,7 +28,7 @@ void LinearSieve(int n) {
|
||||||
int main() {
|
int main() {
|
||||||
int n;
|
int n;
|
||||||
cin >> n;
|
cin >> n;
|
||||||
LinearSieve(n); //Call the function
|
LinearSieve(n);
|
||||||
return 0; //Time complexity : O(n*log(log(n))), Auxiliary Space: O(1)
|
return 0;
|
||||||
//Example : n=10 , Output: 2 3 5 7
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue