Amazon interview question

Compute the nth prime.