|
|
A164266
|
|
The count of primes between the n-th and (n+1)-st perfect number.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(1)=6 counts the 6 primes 7, 11, 13, 17, 19 and 23 between 6 and 28.
a(2)=85 counts the 85 primes 29, 31, ..., 487, 491 between 28 and 496.
|
|
MATHEMATICA
|
PrimePi[Last[#]]-PrimePi[First[#]]&/@(Partition[(# (#+1))/2&/@ Select[ 2^Range[30]-1, PrimeQ], 2, 1]) (* Harvey P. Dale, Dec 27 2011 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,hard
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|