N-th Prime

I am getting RE in the 3rd case can someone please tell me what might be the reason?

Thanks