TLE error while submitting the code

my code is compiling but while submitting it is throwing TLE error

Kindly resolve my querry

Hello @adityaanand47, hello bro you need to use segmented sieve for this problem.
Sieve of eratosthenes is the famous algorithm for finding out the prime nos. We just need to find it out in a given segment.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.