OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..1000 (terms 1..100 from Zak Seidov)
EXAMPLE
a(6) = 21 and the number 2333321 is a prime.
MATHEMATICA
a[1] = 2; a[n_] := a[n] = Block[{k = 1, c = IntegerDigits @ Table[ a[i], {i, n - 1}]}, While[ !PrimeQ[ FromDigits @ Flatten @ Append[c, IntegerDigits[k]]], k += 2]; k]; Table[ a[n], {n, 67}] (* Robert G. Wilson v, Aug 05 2005 *)
PROG
(Python)
from gmpy2 import is_prime
from itertools import count, islice
def agen(): # generator of terms
an, s = 2, "2"
while True:
yield an
an = next(k for k in count(3, 2) if is_prime(int(s+str(k))))
s += str(an)
print(list(islice(agen(), 66))) # Michael S. Branicky, May 11 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Mar 26 2002
EXTENSIONS
More terms from Jason Earls, Jun 13 2002
STATUS
approved