Regarding assignments problems

https://ide.codingblocks.com/s/68633
how to optimise this prime number code not to exceed timelimit

@raushan.raman23011999 use prime sieve to reduce time complexity. there is video in our course section sieve of eratosthenes

Hey Raushan,
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.