Closed VishalPatil18 closed 4 years ago
Program to check if a number is prime or not with O(1) time complexity for answering the query using Sieve of Erastothenes. The implementation is in C++. Code Contribution by Vishal Patil.
Program to check if a number is prime or not with O(1) time complexity for answering the query using Sieve of Erastothenes. The implementation is in C++. Code Contribution by Vishal Patil.