Update linear-sieve.cpp

pull/1195/head
Rohan Janardhan 2023-06-02 10:05:32 +05:30 committed by GitHub
parent 6c25653f10
commit 8e916daae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ void LinearSieve(int n) {
int main() {
int n;
cin >> n;
LinearSieve(n); //Call the function
return 0; //Time complexity : O(n*log(log(n))), Auxiliary Space: O(1)
//Example : n=10 , Output: 2 3 5 7
}
LinearSieve(n);
return 0;
}