This code doesnt pass any test cases
Prime visits problem
There were a few errors in your code. I have corrected them https://ide.codingblocks.com/s/420148
Firstly make the array global when it’s of this much size.
There were some issues in your primesieve function as well.
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.