https://ide.codingblocks.com/s/268331.What’s the problem with this code
Problem with the code
Take upperbound (ceil) for start.
also in seive do till <N (and not <=N)
https://ide.codingblocks.com/s/269746. please check out this solution it’s working for the sample test cases
Please take a look at your code! works fine
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.