I am getting wrong ans for all the testcases
Prime visits error
Hello @Aniruddha,
The reasons your all outputs are wrong are:
-
Your output format does not matches with the question. You are printing unnecessary sentences and endl.
Read the question carefully. -
You are not considering 0.
What if the input is:
1
0 10
Expected Output:
5
Your Output:
7
Hope, this would help.
Give a like, if you are satisfied.
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.