You are viewing a single comment's thread. Return to all comments →
My code worked only after changing the size of sieve. I increased it's size from 10001 to 200000. See if it works for any of you guys too. But, I don't know why TLE was shown before changing size - when it should have shown error ? This is weird.