Getting TLE in the question

this is the problem statement:

https://hack.codingblocks.com/app/practice/1/388/problem

answer:

@Bhavya_Goel your input format is not correct, you will be given a number n and you have to print the nth prime number

sorry send you the wrong question link
https://hack.codingblocks.com/app/practice/1/388/problem

@Bhavya_Goel see the constraints are quite large
1<=T<=10 1<=m<=n<=1000000000, n-m<=100000
so segmented sieve has to be used here

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.