Can primes be approximated by an integral in series calculations?

In summary: However, the probability that a number picked at random out of an interval is prime is 1/(the number of elements in the double open interval). So, for instance, if I pick a number at random from I_1, the probability that it is prime is 1/(2-1), which is 1/3.
  • #1
eljose
492
0
Sorry i don't know if this thread should be or in the "Number theory" forum, in fact if you want to calculate the series over all primes:

[tex] \sum_{p} f(x) [/tex] this can be very confusing as you don't know the "density" of primes my question is if we can approximate such series by the integral:

[tex] \int_ {2}^{\infty}dx P(x)f(x) [/tex] where [tex] P(x)\sim 1/log(x) [/tex]. (since for x<2 there are no primes )

The definition for P(x) is the "probability" of a random integer to be a prime (obviously x>0 ), the integral above could be then considered as the "sum" of the series as an approximation..is this possible or coherent?.:confused: :confused: :confused:
 
Last edited:
Physics news on Phys.org
  • #2
There are two approaches that I can think of off the top of my head on how you might be able to do this:

One is based on the link you showed me that relates prime numbers to quantum physics. http://en.wikipedia.org/wiki/Hilbert-Pólya_conjecture.

Below is an excerpt from the link above that states that the distribution of the zeros of the zeta function obey statistics of the, and I quote, “so-called Gaussian Unitary Ensemble.” Since the Riemann zeta function is related to the distribution of primes, you might study the statistics of the Gaussian Unitary Ensemble to see if you might be able to apply them to creating the probability function you are looking for.


Code:
“Dyson saw that the statistical distribution found by Montgomery was exactly the same as the pair correlation distribution for the eigenvalues of a random Hermitian matrix. Subsequent work has strongly borne out this discovery, and the distribution of the zeros of the Riemann zeta function is now believed to satisfy the same statistics as the eigenvalues of a random Hermitian matrix, the statistics of the so-called Gaussian Unitary Ensemble.”

The second approach I would take, which you might want to start with, is based on the following well known result in Number Theory. Namely, it was proved that for any integer n greater than or equal to 2, there exists at least one prime number between n and 2n. Starting with the integer n = 2, and create a sequence consisting of intervals as follows:

I_1 = (2 < p < 2*2) = (2 < p < 4)

I_2 = (3 < p < 2*3) = (3 < p < 6)
.
.
I_n = (n+1<p <2n+2)

The probability that 1 prime will exist in each of the intervals is 100%.

Similarly, the probability that 2 primes will exist in the union of any two intervals above will also be 100%..etc. The chances that a random number picked out of one of these intervals is prime is 1/(the number of elements in the double open interval).

For I_1, the probability is 100% because only 1 number exists in this interval, namely the number 3, and thus it must be a prime number.

Other questions one might ask is “what is the probability that 3 primes will exist in the union of two intervals above?” Does this probability increase with the size of the two prospective intervals? (The answer to the second question I think is yes) …etc.

Similarly, you could study z(x,y) = sin(pi*x)^2 + sin(pi*y/x)^2 = 0.

When ever y is an integer, the only way for z(x,y) to be zero is for x to be an integer and to divide y evenly. So, the level curves of the function for z = 0 must run through all points (x,y) that satisfy the condition y/x = an integer, and x is an integer. You might be able to extract some useful information by analyzing such functions.

I hope some of this helps.

Best Regards,

Edwin
 
  • #3
Actually, I should make one slight correction:

Code:
The chances that a random number picked out of one of these intervals is prime is 1/(the number of elements in the double open interval).
is not entirely correct. Actually, the chances that a random number picked out of one of these intervals is prime is "atleast" 1/(the number of elements in the double open interval). This is because the chances that a number picked at random out of an interval is prime increases with the size of the interval chosen.

Just another thought.

Best Regards,

Edwin
 
  • #4
Edwin said:
Actually, I should make one slight correction:

Code:
The chances that a random number picked out of one of these intervals is prime is 1/(the number of elements in the double open interval).
is not entirely correct. Actually, the chances that a random number picked out of one of these intervals is prime is "atleast" 1/(the number of elements in the double open interval). This is because the chances that a number picked at random out of an interval is prime increases with the size of the interval chosen.

Just another thought.

Best Regards,

Edwin

well that's not quite right either. As you correctly point out the probability that n is prime if [itex]2<n<4[/itex] is 1, while, for example, the probability that n is prime if [itex]16<n<32[/itex] is only 1/3 (there are 5 primes in there). In fact the prime number theorem will tell you that

[tex]\lim_{n\rightarrow \infty} \frac{\pi (2n) - \pi (n)}{n} = 0.[/tex]

(and in fact [itex]\lim_{n\rightarrow \infty} \pi (n)/n = \lim_{n \rightarrow \infty} 1/\ln{n} = 0[/itex]).

This is true: "Actually, the chances that a random number picked out of one of these intervals is prime is 'atleast' 1/(the number of elements in the double open interval)."

The reason is simply that you can have more than one prime in the intervals. The probability doesn't get larger for larger intervals (in general) though.
 
Last edited:
  • #5
That's interesting. You've shown that the density of primes in an interval (n, 2n) decreases without bound as the size of the interval (n,2n) approaches infinity. Is this correct?

Inquisitively,

Edwin
 
  • #6
as I said, it follows from the prime number theorem:

[tex]\pi(n) \sim \frac{n}{\ln{n}},[/tex]

or even better, [itex]\pi(n) \sim \mbox{Li}(n)[/itex]

([itex]\sim[/itex] just means that as n gets large the ratio of the two goes to 1)

or in other words that the density of primes, [itex]\pi(n) / n[/itex] is asymptotic to 1/ln(n), which goes to 0. What I said in the last post follows from that pretty trivially.

If you want to read some qualitative stuff just check out the mathworld page: http://mathworld.wolfram.com/PrimeNumberTheorem.html
 
Last edited:
  • #7
Well my question is if taking into account PNT theorem then we would have that either [tex] \sum _ p f(x) \sim \int_ 2 ^{\infty} dx \frac{f(x)}{log(x)}dx [/tex] or [tex] \sum _ p f(x) =O(\int_ 2 ^{\infty} dx \frac{f(x)}{log(x)}dx) [/tex]

Where in both cases the sum is extended over all primes and the notation used here is "asymptotic equality" or "Big-O notation"...this could be useful to deal with Goldbach-conjecture as:

[tex] I(N)=\int_{0}^{1} dx T^3 (x) e^{-2\pi i N x} [/tex] where the T(x) function is the sum over all primes less or equal than N (odd number) for the function [tex] f(x)=e^{2 \pi i x} [/tex] or something similar..
 
Last edited:
  • #8
your notation is a little misleading, you're asking whether various limits (so, either numbers or limits that don't exist) are asymptotic to each other!

I am going to assume that what you really mean is something like "can we say that

[tex]\sum_{x \in \mathbb{P}_n} f(x) \sim \int_2^{p_n} \frac{f(x)}{\ln{x}}dx[/tex]

where [itex]\mathbb{P}_n[/itex] is the set of the first [itex]n[/itex] primes and [itex]p_n[/itex] is the nth prime (for suitably well-behaved [itex]f[/itex])."

If that's a correct interpretation of what you mean then I don't think you're going to be able to say too much about it easily. In order for it to be true the restrictions on [itex]f[/itex] are going to have to be pretty strict (if [itex]f[/itex] is constant it's true of course, but I don't know what other functions will work - try some examples with things like [itex]e^x[/itex] or [itex]e^{-x}[/itex] for large [itex]n[/itex] [with a computer], and you'll see that the ratio doesn't seem to be getting anywhere near 1 - as a matter of fact if [itex]f(x)=e^{-x}[/itex] then the sum over the first [itex]n[/itex] terms quickly exceeds the integral over all [itex]x[/itex], so that's an honest-to-goodness counterexample, even if you restrict [itex]f[/itex] to be continuous and positive and monotone).
 
Last edited:
  • #9
Define:

[tex]
r(x) := \frac{x}{\ln x}
[/tex]

and let q be the inverse of r. Then, roughly speaking:

[tex]
n = \pi(p_n) \sim \frac{p_n}{\ln p_n} = r(p_n)
[/tex]

so that

[tex]p_n \sim q(n)[/tex]

Then,

[tex]
\sum_{i = 1}^n f(p_i)
\sim \sum_{i = 1}^n f(q(i))
\sim \int_1^n f(q(x)) \, dx
\sim \int_{q(1)}^{q(n)} f(u) \frac{\ln u - 1}{(\ln u)^2} \, du
\sim \int_{2}^{p_n} \frac{f(u)}{\ln u} \, du
[/tex]

But let me emphasize that I said roughly speaking.

With the right conditions on f, each step of this is something you should be able to handle rigorously. You can replace all of those hand-waving "~" with an actual theorem and obtain something that will actually be correct.

Let me get you started. We can replace the intuitive

[tex]\pi(n) \sim \frac{n}{\ln n}[/tex]

with the accurate

[tex]\frac{7 n}{8 \ln n} < \pi(n) < \frac{9 n}{8 \ln n}[/tex]
 
Last edited:
  • #10
Uh..then i was wrong in fact sometimes i have several problems to distinguish the sum over all primes less than x [tex] \sum_{p<x}f(x)=S(x) [/tex] and the sum over the first n-primes as you pointed [tex] \sum_{i=1}^{N} f(p_i ) [/tex] although i think that [tex] \sum_{i=1}^{N} f(p_i ) =S(p_N)[/tex]
 
  • #11
Treating the primes as a random sequence gets done all the time for heuristic arguments, this is the Cramer model where you consider the probabilities any given numbers are prime as independant. This is of course not true in a few ways, the primes aren't random, and the probabilities aren't independant, we know one of n or n+1 is not prime for example. You often get the right answer for this approach (consider the sum of the reciprocals of the primes), but it does not always work (known to fail for primes in 'short' intervals) and this can't be considered a proof of any kind.

There are numerous ways to handle sums over primes, you might want to start with Iwaniec and Kowalski's analytic number theory text (I've mentioned a few times) with the chapter appropriately titled "Sums Over Primes" for an overview.
 

Related to Can primes be approximated by an integral in series calculations?

1. What is "Integration over primes"?

"Integration over primes" is a mathematical concept that involves integrating a given function over a set of prime numbers. In simpler terms, it is the process of summing up the values of a function at each prime number in a given range.

2. What is the significance of "Integration over primes"?

The significance of "Integration over primes" lies in its application in number theory and cryptography. It allows for the efficient calculation of various number-theoretic functions and can be used in cryptographic algorithms to generate secure primes.

3. How is "Integration over primes" different from regular integration?

"Integration over primes" differs from regular integration in that it involves only prime numbers, whereas regular integration considers all real numbers. Additionally, the methods used for "Integration over primes" are different and require knowledge of number theory.

4. What are some common techniques used for "Integration over primes"?

Some common techniques used for "Integration over primes" include the Euler-Maclaurin summation formula, the Riemann-Stieltjes integral, and various sieving methods. These methods are used to simplify the calculation of the integral and improve its accuracy.

5. What are some real-world applications of "Integration over primes"?

"Integration over primes" has various real-world applications, including in cryptography, data compression, and the study of prime numbers. It is also used in the analysis of algorithms and the calculation of complex number-theoretic functions.

Similar threads

Replies
1
Views
1K
Replies
16
Views
3K
Replies
2
Views
1K
Replies
3
Views
1K
Replies
4
Views
1K
Replies
8
Views
397
  • Calculus
Replies
11
Views
2K
  • Calculus
Replies
8
Views
403
Replies
2
Views
457
  • Calculus
Replies
4
Views
1K
Back
Top