Why this candy problem is not submitting in ? i am getting right o/p but when i am submitting it then nothing is showing in screen why?

please resolve the issue ???/

Please send the link of your code

Create the sieve array before taking any inputs for the test cases.
And then simply display sieve[n-1] in the while(t–) loop.