If you knew Pi(x) for every number

  • Context: Graduate 
  • Thread starter Thread starter eljose
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the prime number counting function \(\pi(x)\) and its implications for recovering the n-th prime number. Participants explore various methods of deriving the n-th prime, including potential summation formulas and mappings, while also addressing the theoretical aspects of storing infinite numbers.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that inverting the function \(\pi(x)\) could provide a way to find the n-th prime, while also questioning if there are alternative methods involving summation of values related to \(\pi(x)\).
  • Another participant raises the challenge of storing an infinite number of numbers and questions the feasibility of storing all primes, proposing that a mapping from natural numbers could be used.
  • A different viewpoint emphasizes that while a 1-1 mapping exists for some sets, it does not apply to \(\pi(x)\) as described by eljose, highlighting the distinction between knowing a function and having a mapping for it.
  • Some participants reference external sources, like Mathworld, that provide formulas for the n-th prime based on \(\pi(x)\), questioning the validity of these approaches.
  • There is a discussion about the exact definition of \(\pi(x)\) as the count of primes less than or equal to \(x\), and whether there is a belief among mathematicians regarding the possibility of expressing it in elementary functions.

Areas of Agreement / Disagreement

Participants express differing views on the methods of deriving the n-th prime from \(\pi(x)\), with no consensus reached on the feasibility of various approaches or the implications of storing infinite numbers.

Contextual Notes

Some participants note limitations in current methods for calculating \(\pi(x)\), including the lack of elementary functions or efficient algorithms for its computation.

eljose
Messages
484
Reaction score
0
If we knew the prime number counting function [tex]\pi(x)[/tex] then how could we recover the n-th prime?..of course an easy solution would be inverting this function [tex]\pi(x)[/tex] to get for integers the p-th prime..the question is..is there no other form of getting the nth prime by summing some values of the prime counting function over n or something similar i mean:

[tex]P_{n}= \sum_{1}^{2^{n}} F(x, \pi(x) )[/tex] how do you get this formulas?..thank you.
 
Physics news on Phys.org
How exactly would we store an infinite number of numbers?

And if we could store an infinite number of numbers, why not just store all primes?
 
Zurtex said:
How exactly would we store an infinite number of numbers?

And if we could store an infinite number of numbers, why not just store all primes?
As long as there are only a countably infinite number of numbers needing to be stored, the straightforward way of storing them would be to define a mapping from the naturals to the set of numbers needing to be stored. As long as that mapping doesn't take an infinite number of instructions, the storing can be done exactly.

E.g. 1, 4, 9, 16, 25, 36, ... is an infinite number of numbers that can be stored by the function an=n2.

I'm not sure that [itex]\pi (x)[/itex] has a mapping with a finite number of instructions. If it did, that mapping could be used to create a mapping with a finite number of instructions for the primes, and vice versa. I think the mapping of the naturals to the primes is what eljose is after. To get the nth prime from [itex]\pi (x)[/itex] is simply a matter of finding the smallest x such that [itex]\pi (x)[/itex]=n.
 
Nimz said:
As long as there are only a countably infinite number of numbers needing to be stored, the straightforward way of storing them would be to define a mapping from the naturals to the set of numbers needing to be stored. As long as that mapping doesn't take an infinite number of instructions, the storing can be done exactly.

No!

That's having a 1-1 mapping from the natural numbers to the set in question, we have lots of those.

eljose said "If you knew Pi(x) for every number", not had a 1-1 mapping for it. For example I know every number which is a divisor of 6. I have a 1-1 mapping from n -- > n2, I don't know all square numbers.

Fine point, but needs to be made.
 
the question is that in "Mathworld" and other pages they give formulas for the n-th prime [tex]\p_{n}[/tex] by assuming they know the function [tex]\pi(x)[/tex] for example at the link:

http://mathworld.wolfram.com/PrimeFormulas.html
 
eljose said:
the question is that in "Mathworld" and other pages they give formulas for the n-th prime [tex]\p_{n}[/tex] by assuming they know the function [tex]\pi(x)[/tex] for example at the link:

http://mathworld.wolfram.com/PrimeFormulas.html
So? Seems like an o.k way to do it to me.
 
And here we go again: eljose, we know exactly what pi(x) is: it is the number of primes less than or equal to x. We just do not have a way to write this in either 'elementary' functions of x, or a quick enough algorithm for finding it by brute force.
 
matt grime said:
And here we go again: eljose, we know exactly what pi(x) is: it is the number of primes less than or equal to x. We just do not have a way to write this in either 'elementary' functions of x, or a quick enough algorithm for finding it by brute force.

Do mathematicians believe there is a way to write it in an elementary way or can it be proven that it can't ?
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 26 ·
Replies
26
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K