login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A121046 Very good approximation to the (10^n)-th prime. 0
29, 536, 7923, 104768, 1299733, 15484040, 179431239, 2038076587, 22801797576, 252097715777, 2760727752353, 29996225393465, 323780512411510, 3475385760290723, 37124508056355511, 394906913798224975 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

The algorithm primex(x) uses an exponent bisection routine and Gram's Riemann approximation, Rg(x) for the prime counting function Pi(x). We know that Rg(x) is relatively close to Pi(x) as x gets large. We take advantage of this relatively small error noting that Pi(prime(x)) = x ~ Rg(prime(x)). A reasonable approximation of prime(x) is xlog(x) while for x = 10^n, often, 10^nlog(10^(n+1) is a much better approximation. The PARI program shows the flow of this algorithm.

LINKS

David Broadhurst, Primeform yahoo group.

Chris Caldwell, The Prime Page.

EXAMPLE

The largest known prime(10^n) = A006988(18) = 44211790234832169331 and a(18) = 44211790234127235470. So the approximation primex(10^18) is accurate to 11 places.

PROG

(PARI) primex3(n) = \List the approximations to the (10^n)-th prime \ By Cino hilliard { for(x=1, n, print1(primex(10^x)", ")) } primex(n) = { local(x, px, r1, r2, r, p10, b, e); b=10; p10=log(n)/log(10); if(Rg(b^p10*log(b^(p10+1)))< b^p10, m=p10+1, m=p10); r1 = 0; r2 = 1; for(x=1, 400, r=(r1+r2)/2; px = Rg(b^p10*log(b^(m+r))); if(px <= b^p10, r1=r, r2=r); r=(r1+r2)/2; ); floor(b^p10*log(b^(m+r))+.5); } Rg(x) = \Gram's Riemann's Approx of Pi(x) { local(n=1, L, s=1, r); L=r=log(x); while(s<10^120*r, s=s+r/zeta(n+1)/n; n=n+1; r=r*L/n); (s) }

CROSSREFS

Cf. A006988.

Sequence in context: A028180 A028171 A028146 * A028168 A028139 A028137

Adjacent sequences:  A121043 A121044 A121045 * A121047 A121048 A121049

KEYWORD

base,nonn,uned

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Aug 08 2006, Aug 17 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 02:30 EST 2012. Contains 205860 sequences.