here is my link to code https://ide.codingblocks.com/s/263507
MY TEST CASE 3 is right all other are wrong
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