my first two test case dont pass
why?
it is similar to prateek and candy!
Deepak and primes
@Harsh_aggarwal since you need to tell upto 5000000th prime the value of max should be increased and you can optimize your sieve as well.
but U have already used vakue greater than 50 lakh ; and used all optemisation whhuch are teached in vido lecture
@Harsh_aggarwal the value of seive needs to be order of 100000000, please refer to this code for information about optimizations:
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.