A123086 Numbers which are the arithmetic mean of 1000000 consecutive primes.
11860710, 19524458, 30466003, 57980974, 63924288, 90876871, 98124660, 100711080, 107813124, 130902871, 130920140, 133345096, 137765645, 149928192, 187600902, 214934436, 223349020, 235566127, 238768532, 239934902, 264189816, 270196572, 278851320, 285021997
Offset: 1
Keywords
Examples
11860710 is in the sequence since (p(275775) + p(275776) + ... + p(275775+999998) + p(275775+999999)) / 1000000 = 11860710 where p(n) is the n-th prime.
Links
- Zak Seidov, Table of n, a(n) for n = 1..467
Crossrefs
Programs
-
Mathematica
Timing[s = 7472966967499 ; a = 2; b = 15485863; Do[s = s - a + (b = NextPrime[b]); a = NextPrime[a]; If[Mod[s, 10^6] < 1, Print[s/10^6]], {10^8}]]
-
PARI
{s = 7472966967499 ; a = 2; b = 15485863; for (k = 1, 10^9, if(s%10^6 < 1, print( s/10^6)); b = nextprime (b + 2); s = s - a + b; a = nextprime (a + 1))}
Comments