OFFSET
1,1
REFERENCES
Eric Angelini, Posting to the Sequence Fans Mailing List, Aug 14 2013.
LINKS
PROG
(Python)
from sympy import isprime
from itertools import islice
def c(s, t):
u, v = int(s+t), int(t+s)
if isprime(u): return u
if isprime(v): return v
return False
def agen():
aset, k, mink = set(), 1, 2
while True:
an = k; aset.add(an); s, k = str(an), mink
while k in aset or not c(s, str(k)): k += 1
while mink in aset: mink += 1
yield c(s, str(k))
print(list(islice(agen(), 46))) # Michael S. Branicky, Oct 17 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Aug 20 2013
EXTENSIONS
More terms from Alois P. Heinz, Aug 20 2013
STATUS
approved