@goelsparsh277 check line 11, condition should be j<1000000. you write i<
ohh okay, i have corrected my code but 1st 2 cases is giving run error
@goelsparsh277 Increase size of your sieve to 90000000