why is it not running?
Prateek loves candy
@nirupama1 i think there is some technical issue with online ide try running it in any other ide it will work fine.
but when you submit it on hackerblocks it will give you TLE since you are running sieve for every test case, try to think of an efficient approach.
i have modified it so that it won’t give TLE but why it is showig issue only with this code if it is technical problem? it is working well with other code.
it got accepted on hackerblocks
No doubts. Thank you.
Ok it got accepted oh hackerblocks but when i am submitting the same code in the course of algo++ it is giving MLE. why 