Prime visits problem


getting the following error
/bin/run.sh: line 4: 17 Segmentation fault (core dumped) ./exe

Hello @mkidwai74 make your array P of some more big size i.e 1000000

This code isnt passing any of the test case.
kindly help me out

@mkidwai74 check this:


Happy Learning!!

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.