From d8272848fd18609ae6005fac6f813b7d1f6e2a79 Mon Sep 17 00:00:00 2001 From: "mihirsuman0131@gmail.com" Date: Sat, 24 Dec 2022 15:48:52 +0530 Subject: [PATCH] chore(Java): add sieve of eratosthenes #1117 --- algorithms/Java/Maths/Sieve_of_Eratosthenes.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/algorithms/Java/Maths/Sieve_of_Eratosthenes.java b/algorithms/Java/Maths/Sieve_of_Eratosthenes.java index df925f16..42e355c0 100644 --- a/algorithms/Java/Maths/Sieve_of_Eratosthenes.java +++ b/algorithms/Java/Maths/Sieve_of_Eratosthenes.java @@ -49,4 +49,8 @@ public class Sieve_of_Eratosthenes { /* Time Complexity: O(n*log(log(n))) Auxiliary Space: O(n) Constraint: n = 10,000,000 + + Input: 100 + Output: Following are the prime numbers: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 + */ \ No newline at end of file