Prateek loves candy doubtss

can’t solve using prime sieve,is there any other approach to this problem?

It is a standard question of sieve of Eratosthenes…try again after rewatching the video, and if you still face any problems, then share your code.

Hey Shubham,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.