chore(Java): add sieve of eratosthenes (#1117)

pull/1118/head
mihirsuman0131@gmail.com 2022-12-24 15:25:47 +05:30
parent 2a6e20691b
commit 4c7d2880ab
1 changed files with 7 additions and 1 deletions

View File

@ -44,3 +44,9 @@ public class Sieve_of_Eratosthenes {
} }
} }
} }
/* Time Complexity: O(n*log(log(n)))
Auxiliary Space: O(n)
Constraint: n = 10,000,000
*/