why is there is a isPrime function written if it’s not being called at primeVisit function
More clarity on prime visit editorial
@ishaanveerd,
The sole purpose of isPrime is to check whether a number is prime or not. But in this question we will be using Sieve of Eratosthenes. Hence we don’t need the isPrime function. You can ignore it.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.