Deepak and prime problem two test

4 test cases passed but 2 didn’t
one is showing wrong ans
and other is showing run time error
pls help

@shreyansh320 please save your code in codepair and then send me the link.

@shreyansh320 It might cause runtime error if you declare a big sized array locally in main function. Please declare larger sized array globally to overcome runtime error.

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.