OFFSET
1,1
COMMENTS
A switch between two sums of primes when the alternating sum is not prime then a direct sequence prime sum is switched.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
a=Table[If[PrimeQ[Prime[n + 2] + Prime[n] + 1], Prime[n + 2] + Prime[n] + 1, Prime[n + 1] + Prime[n] + 1], {n, 1, 200}]
If[PrimeQ[#[[3]]+#[[1]]+1], #[[3]]+#[[1]]+1, #[[2]]+#[[1]]+1]&/@Partition[ Prime[ Range[ 100]], 3, 1] (* Harvey P. Dale, Jun 10 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Nov 01 2005
STATUS
approved