Prime visits question


what is the error?

you have provided wrong output
and also doesn’t consider multiple testcase

Modified Code

got it, thanks! :slight_smile: