Getting TLE in Deepak and Primes-II

Hi,

I am getting TLE on 2 testcases in Deepak and Primes-II problem.
My code is saved on below url. Please let me know how could I further optimised my code.

https://ide.codingblocks.com/#/s/21591

You are also using Segmented Sieve. Not sure what is the issue exactly.
You can refer my code which passes all test cases -
https://ide.codingblocks.com/#/s/23145