If you knew Pi(x) for every number

  • Thread starter Thread starter eljose
  • Start date Start date
eljose
Messages
484
Reaction score
0
If we knew the prime number counting function \pi(x) then how could we recover the n-th prime?..of course an easy solution would be inverting this function \pi(x) 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:

P_{n}= \sum_{1}^{2^{n}} F(x, \pi(x) ) 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 \pi (x) 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 \pi (x) is simply a matter of finding the smallest x such that \pi (x)=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.
 
eljose said:
the question is that in "Mathworld" and other pages they give formulas for the n-th prime \p_{n} by assuming they know the function \pi(x) 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 ?
 
Back
Top