OFFSET
1,1
COMMENTS
First 7-tuple of consecutive primes belonging to the sequence: 118061, 118081, 118093, 118127, 118147, 118163, 118169. Twin primes in the sequence: 29, 31; 107, 109; 197, 199; 1427, 1429; 1607, 1609; 1721, 1723; 4019, 4021, etc. [Bruno Berselli, Aug 26 2013]
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..1000
EXAMPLE
47 is in the sequence because 47+53+59+61+67+71+73+79+83 = 593 and 593 is prime.
MATHEMATICA
Transpose[Select[Partition[Prime[Range[500]], 9, 1], PrimeQ[Total[#]]&]] [[1]] (* Harvey P. Dale, Jun 05 2013 *)
PROG
(Magma) [ NthPrime(n): n in [1..190] | IsPrime(&+[NthPrime(n+s): s in [0..8]]) ];
(Python)
from sympy import isprime, nextprime
def aupto(limit):
plst, alst = [3, 5, 7, 11, 13, 17, 19, 23, 29], []
while plst[0] <= limit:
if isprime(sum(plst)): alst.append(plst[0])
plst = plst[1:] + [nextprime(plst[-1])]
return alst
print(aupto(1200)) # Michael S. Branicky, Mar 29 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Bruno Berselli, Apr 23 2011
EXTENSIONS
Additional cross reference from Harvey P. Dale, Jun 05 2013
STATUS
approved