I am trying to solve https://online.codingblocks.com/player/2872/content/795?s=385&tab=submissions
but i am getting tle and runtime exception .
I am trying to solve it using prime sieve
Problem - Deepak & Primes (Sieve) : Please , suggest what i am missing
https://ide.codingblocks.com/#/s/15537
I have commented the changes,once you see you will understand.