OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 7 because 7, 11, 13, 17 and 19 concatenated together yield 711131719, which is prime.
PROG
(Python)
from itertools import islice
from sympy import isprime, nextprime
def agen(): # generator of terms
plst = [2, 3, 5, 7, 11]
slst = list(map(str, plst))
while True:
if isprime(int("".join(slst))):
yield plst[0]
plst = plst[1:] + [nextprime(plst[-1])]
slst = slst[1:] + [str(plst[-1])]
print(list(islice(agen(), 50))) # Michael S. Branicky, Jan 26 2023
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Chuck Seggelin (barkeep(AT)plastereddragon.com), Jul 07 2003
EXTENSIONS
Offset corrected by Arkadiusz Wesolowski, May 10 2012
a(15) and beyond from Michael S. Branicky, Jan 26 2023
STATUS
approved