chore(Java): add sieve of eratosthenes (#1117)
parent
2a6e20691b
commit
4c7d2880ab
|
@ -43,4 +43,10 @@ public class Sieve_of_Eratosthenes {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Time Complexity: O(n*log(log(n)))
|
||||||
|
Auxiliary Space: O(n)
|
||||||
|
Constraint: n = 10,000,000
|
||||||
|
*/
|
Loading…
Reference in New Issue