Is there a function which will return the approximate value of the n th prime? I think this would be something like an approximate inverse prime counting function.
As a rough estimate, you can use n*ln(n) as an approximation for the nth prime number. There is a much more complex, but more accurate method, details of which you can find on Wikipedia here.