Significance of discovering a function which computes the n-th prime?

Click For Summary

Discussion Overview

The discussion revolves around the theoretical implications and significance of discovering a function, denoted as F(x), that computes the n-th prime number directly without relying on brute-force methods. Participants explore the potential impact of such a discovery on the field of mathematics, as well as the definitions and characteristics of computational methods related to prime numbers.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants propose that if a function F(n) exists that computes the n-th prime directly, it would be groundbreaking for mathematics.
  • Others mention that the efficiency of computing F(n) is a critical question, suggesting that the existence of such a function does not guarantee practical utility.
  • There is a discussion about the ambiguity in defining "brute-force" versus "non-brute-force" computation methods for finding primes.
  • Some participants reference existing formulas and methods, such as the sieve of Eratosthenes and Willans' formula, to illustrate different approaches to prime computation.
  • Others note that while there are polynomials that can yield prime numbers, their practical application is limited.
  • A participant suggests that calculating the n-th prime may not be significantly harder than calculating the prime-counting function π(x), proposing a method involving bounds and binary search.

Areas of Agreement / Disagreement

Participants express differing views on the significance and practicality of discovering such a function, with no consensus on whether it would be groundbreaking or how to define computational methods. The discussion remains unresolved regarding the implications of such a discovery.

Contextual Notes

Participants highlight limitations in defining computational methods and the practical utility of theoretical constructs, indicating that the discussion is heavily dependent on definitions and assumptions about computation.

tade
Messages
720
Reaction score
26
Let's say the function is of a form F(x), where F(n) gives us the value of the n-th prime number, for all values of n.

And it computes and discovers subsequent prime numbers directly without using any form of brute-force computation.If such a function is discovered, how ground-breaking would it be considered to the field of mathematics?

Also, even though it has not been discovered, does this F(x) function have a tentative name?
 
Last edited:
Mathematics news on Phys.org
tade said:
Let's say the function is of a form F(x), where F(n) gives us the value of the n-th prime number, for all values of n.
And it computes and discovers subsequent prime numbers directly without using any form of brute-force computation.

If such a function is discovered, how ground-breaking would it be considered to the field of mathematics?

Also, even though it has not been discovered, does this F(x) function have a tentative name?

The function exists, of course, but it's how efficently you can compute ##f(n)## that is the question. There's a little something about it here:

https://en.wikipedia.org/wiki/Formula_for_primes#A_function_that_represents_all_primes
 
  • Like
Likes   Reactions: Janosh89
PeroK said:
The function exists, of course, but it's how efficently you can compute ##f(n)## that is the question. There's a little something about it here:

https://en.wikipedia.org/wiki/Formula_for_primes#A_function_that_represents_all_primes

It's a "Catch-22 formula" isn't it?

You need precise values of f1 to compute more primes, but then you need more primes to compute precise values of f1

also would the discovery of F(x) be considered groundbreaking to the field?
 
tade said:
also would the discovery of F(x) be considered groundbreaking to the field?

The ability to compute the nth prime relatively quickly would be something very special.
 
PeroK said:
The ability to compute the nth prime relatively quickly would be something very special.
Like a general form of Euler's "lucky" polynomials right? is there a tentative name for such a function?
 
jbriggs444 said:
oh, I'm wondering about the mathematical concepts and not trying to compute specific primes
 
tade said:
And it computes and discovers subsequent prime numbers directly without using any form of brute-force computation.

There's no clear-cut difference between what's "brute-force" and "non-brute-force" computation. Defining a function by just saying that it's the next number produced by the sieve of Eratosthenes is just as valid as defining it as a polynomial.

There are ways to define polynomials of many integer variables such that all their positive values are primes, but this doesn't have much use in practical computation:

https://primes.utm.edu/glossary/page.php?sort=MatijasevicPoly
 
  • Like
Likes   Reactions: Vanadium 50 and PeroK
hilbert2 said:
There's no clear-cut difference between what's "brute-force" and "non-brute-force" computation. Defining a function by just saying that it's the next number produced by the sieve of Eratosthenes is just as valid as defining it as a polynomial.

There are ways to define polynomials of many integer variables such that all their positive values are primes, but this doesn't have much use in practical computation:

https://primes.utm.edu/glossary/page.php?sort=MatijasevicPoly
I think the difference is that with a brute-force method we're unsure of how many steps it will take to arrive at the answer.

by the way Willans' formula is just an approximation of the prime-counting function π(n) right?

https://www.theoremoftheday.org/NumberTheory/Willans/TotDWillans.pdf
 
  • #10
With trial division you know how many steps you need to test a given prime, and you know that a given prime is at most twice the previous prime. That means even the most stupid approach to find the next prime has an upper limit on the amount of computation. The upper limit is just way too high to be useful. And it's considered to be brute force.

Willans' formula should be exact, it is basically a primality check for every number (and slower than most other primality checks). See the explanation on the right hand side.
 
  • #11
Calculating ##p_n## is not much harder than calculating ##\pi(x)##, according to this stackexchange post. A simple method would be to obtain bounds ##a_n<p_n<b_n##, then do a binary search on ##\pi(x)## in that neighborhood. You would have to do at most ##\lfloor\log_2(b_n-a_n)+1\rfloor## computations of ##\pi(x)##.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K