in the prime generator code , first i tried normal approach but it gave me an error of timelimit. soi decided to use seive of eratosthenis but still i am getting a timelimit error.
code: https://ide.codingblocks.com/s/119776
sir i want to know is there a better approach an what’s wrong with my approach