it is failing the last test case.PL correct the code
Prime visit question doubt
Hello @ayush15goel,
The Solution of the problem is in the question itself:
a<=1000000 & b<=1000000
You have to consider 1000000 also.
Yes, i know that you are doing it already.
Not really,
Let’s think this way.
Does you array has a index 1000000?
I hope you have understood your mistake.
Modification:
ll prime_seive[100001] = {0};
Hope, this would help.
Give a like, if you are satisfied.