Re: Percentage of Prime Numbers
- From: orangatang1@xxxxxxxxxxxxxx
- Date: Sun, 11 May 2008 12:37:25 -0700 (PDT)
On 11 May, 13:12, Narcoleptic Insomniac
<i_have_narcoleptic_insom...@xxxxxxxxx> wrote:
On May 11, 2008 6:36 AM CT, ad...@xxxxxxxxxxxx wrot:
Hi,
I just checked my 10-€-Banknote and found out the
serial number is a prime number. I just asked the
European Central Bank how many Banknotes circulate and
want now to find out the chance that a randomly picked
banknote has a prime serial number. So - is there any
possibility (without crashing my PC) to find out how
many prime numbers are in a given area of numbers?
Thanks a lot!
Yes, one way would be to use approximations of the prime
counting function (denoted pi(x)). The Prime Number
Theorem tells us that this function is asymptotic to
x / ln(x), or in other words
pi(x) ~ x / ln(x).
So, suppose that you wanted to know roughly how many
primes were between A and B (given B > A). Then, by the
PNT, we know that
pi(B) - pi(A) ~ B / ln(B) - A / ln(A)
= B ln(A) - A ln(B) / [ln(B) ln(A)]
= ln(A^B) - ln(B^A) / [ln(B) ln(A)]
= ln(A^B / B^A) / [ln(B) ln(A)]
..is roughly the number of primes between A and B.
Of course, you can divide this by (B - A) to get an
approximate density.
Regards,
Kyle Czarnecki
that is cool. any idea why?
.
- Follow-Ups:
- Re: Percentage of Prime Numbers
- From: Narcoleptic Insomniac
- Re: Percentage of Prime Numbers
- References:
- Percentage of Prime Numbers
- From: admin
- Re: Percentage of Prime Numbers
- From: Narcoleptic Insomniac
- Percentage of Prime Numbers
- Prev by Date: Re: -- Limit of ratio of consecutive primes = 1 ?
- Next by Date: Re: A free copy of Maple
- Previous by thread: Re: Percentage of Prime Numbers
- Next by thread: Re: Percentage of Prime Numbers
- Index(es):
Relevant Pages
|