0
$\begingroup$

Possible Duplicate:
Is there a known mathematical equation to find the nth prime?

Is there a function, like f(n), I insert n into the function and it outputs nth prime number? I have been trying to find a pattern between the prime numbers, 1st differences, 2nd differences, but I can't find it.

To be clear: I want something like f(x)=x^2+5 or f(x)=2.sin(x)+x^2. You know what I mean...

  • 0
    I think Chris's wikipedia link should answer your question sufficiently.2012-01-02

1 Answers 1

-1

Well yes, the function $f$ does exist, but that doesn't mean we know what it looks like.

  • 0
    Many functions exist. We just don't know of an extremely simple one. But the task is often implemented; it just requires finding and counting the primes until you reach n of them.2017-11-28