Run error in deepak and primes

It shows error in all the test cases now. Please help me with it.
Here’s my code - https://ide.codingblocks.com/s/114221

@ranjanpanda
Your loop runs about 10 times more than your array size. You have added an extra 0 in Line No. 12 and 16 in your loop conditions. Get rid of it and your code works fine.

1 Like

It passed the test cases. Thank you.

@ranjanpanda
Please mark your doubt as Resolved if your issue is solved. Or let me know if you have any other issues regarding your doubt.