OFFSET
1,4
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000 (first 2000 terms from T. D. Noe)
EXAMPLE
If we add 10 to each of the first 9 terms of the sequence, we get [10,11,11,12,12,12,11,10,13]. Of these only the three 11's and the 13 are primes. So a(10) = 4.
MATHEMATICA
Fold[Append[#1, Count[#1 + #2, _?PrimeQ]] &, {0}, Range[2, 85]] (* Michael De Vlieger, Sep 28 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 05 2006
EXTENSIONS
Corrected and extended by T. D. Noe, Apr 30 2007
STATUS
approved