From 8e916daae1a4b35291b2e9dde3ec90c7702711c3 Mon Sep 17 00:00:00 2001 From: Rohan Janardhan <104809376+rxhxn30@users.noreply.github.com> Date: Fri, 2 Jun 2023 10:05:32 +0530 Subject: [PATCH] Update linear-sieve.cpp --- algorithms/CPlusPlus/Maths/linear-sieve.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/algorithms/CPlusPlus/Maths/linear-sieve.cpp b/algorithms/CPlusPlus/Maths/linear-sieve.cpp index 00dad4bf..15524223 100644 --- a/algorithms/CPlusPlus/Maths/linear-sieve.cpp +++ b/algorithms/CPlusPlus/Maths/linear-sieve.cpp @@ -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 -} \ No newline at end of file + LinearSieve(n); + return 0; + +}