OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..5000
EXAMPLE
511 is composite and the average of the consecutive primes 503, 509 and 521. Thus, 511 is in the sequence.
MATHEMATICA
Select[Table[(Prime[n] + Prime[n + 1] + Prime[n + 2])/3, {n, 2000}], IntegerQ[#] && ! PrimeQ[#] &]
Select[Mean/@Partition[Prime[Range[1000]], 3, 1], IntegerQ[#]&&CompositeQ[#]&] (* Harvey P. Dale, Feb 01 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Tanya Khovanova, Jun 16 2021
STATUS
approved