Ramanujan Prime

Author

Eric W. Weisstein
September 1, 2005

This notebook downloaded from http://mathworld.wolfram.com/notebooks/PrimeNumbers/RamanujanPrime.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/RamanujanPrime.html.

©2005 Wolfram Research, Inc. except for portions noted otherwise

Enumeration

l=Table[PrimePi[x]-PrimePi[x/2],{x,10^4}];//Timing

1+Last[Position[l,#]][[1]]&/@Range[0,50]