login
A153065
Prime numbers such that the sum of any 5 consecutive terms is a prime.
2
3, 5, 11, 19, 23, 31, 43, 47, 53, 59, 61, 73, 101, 103, 149, 151, 157, 167, 173, 179, 181, 211, 223, 227, 251, 269, 307, 313, 331, 347, 359, 373, 379, 389, 401, 409, 419, 421, 431, 433, 439, 479, 487, 503, 509, 571, 577, 593, 601, 659, 691, 709, 773, 811, 839
OFFSET
1,1
MATHEMATICA
a=3; b=5; c=11; d=19; lst={a, b, c, d}; Do[z=a+b+c+d+n; If[PrimeQ[z]&&n>b&&PrimeQ[n], AppendTo[lst, n]; a=b; b=c; c=d; d=n], {n, 0, 8!}]; lst
CROSSREFS
Sequence in context: A198519 A045957 A364962 * A089439 A122516 A243899
KEYWORD
nonn
AUTHOR
STATUS
approved