Legendre's Conjecture

Author

Eric W. Weisstein
April 19, 2006

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

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

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

Inialization

<<NumberTheory`NumberTheoryFunctions`

First Prime After (n^2)

NextPrime[PrimePi[Range[20]^2]]

Numbers of Primes between (n^2)and (((n+1))^2)

NextPrime[PrimePi[Range[20]^2]]

-Subtract@@@Partition[PrimePi[Range[20]^2],2,1,1]