We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #7: 10001st prime
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.