Prime Visits (prime sieve)

This code is not compiling on my system but it does on hackerblocks.

then there must be some issue in your code

or you can do one thing
try to make global array instead of local array

still it is not running

which text editor and compiler you are using ??
how you run your code ? through cmd or something else?

sublime text and cmd

have you really do this ??

it will work if you make array global

modified Code

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.