If you knew Pi(x) for every number

  • Thread starter eljose
  • Start date
In summary, the conversation discusses the possibility of recovering the n-th prime number using the prime number counting function, \pi(x). The proposed solution is to invert the function to obtain the p-th prime number, but the question is whether there is a different method involving the summation of values from the prime counting function. The conversation also brings up the issue of storing an infinite number of numbers and the use of mappings to store them. However, it is mentioned that there is currently no known way to write the prime number counting function in elementary form or find it quickly enough by brute force. The question is raised whether mathematicians believe it is possible or if it can be proven that it is not possible.
  • #1
eljose
492
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
  • #2
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?
 
  • #3
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.
 
  • #4
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.
 
  • #5
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
 
  • #6
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.
 
  • #7
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.
 
  • #8
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 ?
 

1. What is Pi(x) and why is it important in mathematics?

Pi(x) is a mathematical function that represents the number of prime numbers less than or equal to x. It is important because it helps us understand the distribution of prime numbers and can be used in various mathematical proofs and calculations.

2. How is Pi(x) calculated?

Pi(x) is typically calculated using the Prime Number Theorem, which states that the number of primes less than or equal to x is approximately equal to x/ln(x). However, there are also other methods and algorithms that can be used to calculate Pi(x).

3. Can Pi(x) be expressed in a simple formula?

Unfortunately, there is no known simple formula for Pi(x) that accurately calculates all values. However, there are various approximations and asymptotic expansions that can be used for different ranges of x.

4. How does knowing Pi(x) for every number help in solving mathematical problems?

Knowing Pi(x) for every number allows us to better understand the properties and behavior of prime numbers, which are crucial in many areas of mathematics. It also helps in identifying patterns and making predictions about the distribution of prime numbers.

5. Is it possible to calculate Pi(x) for extremely large numbers?

Yes, it is possible to calculate Pi(x) for extremely large numbers using advanced mathematical methods and computer algorithms. However, as the numbers get larger, it becomes increasingly difficult and time-consuming to calculate Pi(x) accurately.

Similar threads

  • Linear and Abstract Algebra
Replies
8
Views
899
  • Linear and Abstract Algebra
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
822
  • Advanced Physics Homework Help
Replies
1
Views
1K
  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
Replies
1
Views
767
  • Engineering and Comp Sci Homework Help
Replies
32
Views
3K
  • Linear and Abstract Algebra
Replies
8
Views
789
Replies
13
Views
1K
Back
Top