Prime Visits Problem


I am not able to identify my mistake here. Problem is that when i submit my code test-case 1 shows time-limit error so i downloaded test-case 1 and gave input as it was in the test-case 1. So by giving custom input i get correct answer but when i submit the code it shows time-limit error. /*
Test-case 1 is as follows
Input :
4
1 100
0 1000
33 99
44 1500

Output :
25
168
14
225
*/

Hi Harsh
There is a difference in submitting your code and running custom test cases. While submitting your time efficiency is checked but not so in custom test case.
Also you need to optimize your code for successful submission.

Hope it helps
Give a like if you are satisfied :slight_smile:

1 Like

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.