MY TEST CASE 3 is right all other are wrong

here is my link to code https://ide.codingblocks.com/s/263507

u need to use segmented sieve for this question since the constraints are large

this is my code https://ide.codingblocks.com/s/264446 of segmented sieve i still am getting WA on all my test cases except 1

  • line 48
    needs to be
    if(i-m>=0)

updated code