diff --git a/algorithms/Java/Maths/Sieve_of_Eratosthenes.java b/algorithms/Java/Maths/Sieve_of_Eratosthenes.java index 2151c7ce..df925f16 100644 --- a/algorithms/Java/Maths/Sieve_of_Eratosthenes.java +++ b/algorithms/Java/Maths/Sieve_of_Eratosthenes.java @@ -43,4 +43,10 @@ public class Sieve_of_Eratosthenes { } } } -} \ No newline at end of file +} + + +/* Time Complexity: O(n*log(log(n))) + Auxiliary Space: O(n) + Constraint: n = 10,000,000 + */ \ No newline at end of file