Find the nth prime number | NVIDIA Interview Question