OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..2500
EXAMPLE
n=1, p1=29:
29 + 31 + 37 + 41 + 43 + 47 + 53 + 59 + 61 = 401,
29 + 31 + 37 = 97, 41 + 43 + 47 = 131, 53 + 59 + 61 = 173, all primes.
MAPLE
R:= NULL: count:= 0:
P:= [seq(ithprime(i), i=1..9)]:
while count < 100 do
P:= [P[2], P[3], P[4], P[5], P[6], P[7], P[8], P[9], nextprime(P[9])];
if isprime(convert(P, `+`)) and isprime(P[1]+P[2]+P[3]) and isprime(P[4]+P[5]+P[6]) and isprime(P[7]+P[8]+P[9]) then
R:= R, P[1]; count:= count+1;
fi
od:
R; # Robert Israel, Jan 08 2026
MATHEMATICA
Select[Prime@Range@10000, And@@PrimeQ[Flatten@{Total[s=NextPrime[#, 0~Range~8]], Total/@Partition[s, 3]}]&] (* Giorgos Kalogeropoulos, Apr 26 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 26 2021
STATUS
approved
