Deepak and primes ii segmented sieve

my code
i am getting WA for 4 testcases
can someone please help??