OFFSET
1,3
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy import isprime, nextprime
from itertools import count, islice, product
def agen(): # generator of terms
an, t1, t2 = 1, "11", "13"
while True:
yield an
s = str(an)
for an in count(1):
if not isprime(an):
u = str(an)
if t1 not in s+u: continue
if any(s[i:]+u[:j] == t1 and t2.startswith(u[k:]) and t2[len(u[k:])]!= '0' for i in range(len(s)) for j in range(1, len(u)+1) for k in range(len(u))):
break
t1, t2 = t2, str(nextprime(int(t2)))
print(list(islice(agen(), 56))) # Michael S. Branicky, Oct 15 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tamas Sandor Nagy, Oct 15 2025
EXTENSIONS
Terms corrected by Michael S. Branicky, Oct 15 2025
STATUS
approved
