Prateek and candy

https://ide.codingblocks.com/s/288554 i know this is not the best solution but what is the error in my code??

You are not taking input the actual numbers after the test cases.
Also your code will not pass the test cases. You have to use Prime Sieve here.

what do you mean by i am not taking input the actual no.s? i am, i think

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.