Existence of a function for the n-th prime

Click For Summary

Discussion Overview

The discussion revolves around the existence and calculation of a function for the n-th prime number, specifically whether an efficient function can be defined that directly computes prime numbers without relying on prior knowledge of all primes. The conversation touches on concepts from number theory, including prime number finding algorithms and related functions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses interest in the existence of a function p(n) that directly gives the n-th prime, noting that current methods like the Sieve of Eratosthenes require prior knowledge of primes.
  • Another participant acknowledges that while a function p(n) can be defined, calculating it efficiently remains an unresolved challenge, suggesting that prime numbers do not exhibit simple patterns.
  • A suggestion is made to explore the Wikipedia article on Formulas for Primes for additional insights.
  • One participant emphasizes that the absence of a known function does not imply that such a function cannot exist, encouraging others to attempt deriving a formula themselves.
  • Two participants mention the function π(x), which counts the number of primes less than or equal to x, noting its growth rate approaches x/ln(x) as x increases, but also highlighting the lack of a simple calculation method for it.
  • A reference is made to the Wilans function for p_n, suggesting it as a potential resource for further exploration.

Areas of Agreement / Disagreement

Participants express differing views on the existence and calculation of a function for the n-th prime. While some acknowledge the theoretical definition of such a function, there is no consensus on its efficient calculation or the implications of its existence.

Contextual Notes

The discussion reveals limitations in current understanding and methods for calculating prime numbers, including unresolved mathematical challenges and the dependence on existing algorithms.

clint222
Messages
34
Reaction score
0
Hello!

This question may seem silly. I'm a first year engineering and computer science student, not a mathematics student. I have only recently become interested in prime numbers, factorization algorithms, and prime number finding algorithms. I know only extremely elementary number theory, so forgive my ignorance.

I understand the idea behind the Sieve of Eratosthenes, and I realize that there are a variety of similar but more efficient, based on the same general idea.

I had been interested in the idea that a function for the nth prime exists. That is, a function which could be used to directly all of the prime numbers. For example, something of the form p(n), where p(1) = 2, p(2) = 3, etc. I mean one that doesn’t require knowing all of the primes before n, like integer sieves require.

A number theory textbook I have says that no such function has ever been found, and it is likely impossible for such a function to exist. It does discuss some recursive functions that can calculate the nth prime, but they are actually quite a bit less efficient to find prime numbers than a simple integer sieve.

I was wondering if there is any reason why a more efficient prime finding function is thought to be impossible. Or is it simply that evidence of such a thing hasn't been found so it probably isn't possible? I know that this type of function has been of interest for a very long time.

Thanks for helping me learn more about number theory!

Clint
 
Physics news on Phys.org
Well, there is a function: Let p map from the natural numbers to the natural numbers, and let p(n) be defined as the nth prime. There it is.
The problem is: We have no idea how to calculate p(n) efficiently. And as all attempts so far failed - even for weaker requirements* - it might be impossible to find an efficient way to calculate it. In general, prime numbers do not follow any nice patterns.

*like a function p'(n) which just gives some primes in ascending order, not all. Even that would be a surprise.
 
has not been found does not necessarily mean does not exist. I suggest you try to come up with a formula and see what kind of problem you run into.
 
There is a function \pi(x) that takes the natural numbers as its input and outputs the number of primes less than or equal to x.

There are some nice properties of this function. For instance, the growth rate as x approaches infinity approaches x/lnx
 
Jack Jenkins said:
There is a function \pi(x) that takes the natural numbers as its input and outputs the number of primes less than or equal to x.

There are some nice properties of this function. For instance, the growth rate as x approaches infinity approaches x/lnx
Unless \pi(x) is viewed as an approximation only, there is no simple way known to calculate it, just as there is no known way to simply output the nth prime, given n.
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 12 ·
Replies
12
Views
902
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K