Amazon Interview Question

Compute the nth prime.