I was doing a program in which I have to find out the no. of visits PM will make .
My program has passed 2 test cases but it is not passing one test case. Can you help me out.
Regarding a program
hello @sarthak_singhal
instead of preparing sieve for each query , prepare it only once.
and then use it to anser all queries.
refer this->
https://ide.codingblocks.com/s/463515 I have tried another approach than video using only one sieve but now it is giving an error
check now->
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.