OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
23 is a term because 23=prime(9) and concatenation of 23 and 9 is prime.
MATHEMATICA
a=ParallelTable[Prime[k], {k, 1, 10^6}]; k=2; Monitor[Parallelize[While[True, If[ToExpression[StringJoin[ToString/@{k, FromDigits[Position[a, k]//Flatten]}]]//PrimeQ, Print[k]]; k++]; k], k] (* J.W.L. (Jan) Eerland, Dec 22 2022 *)
PROG
(Python)
from itertools import islice
from sympy import isprime, sieve
def agen(): yield from (pn for n, pn in enumerate(sieve, 1) if isprime(int(str(pn)+str(n))))
print(list(islice(agen(), 52))) # Michael S. Branicky, Dec 22 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Jun 29 2003
EXTENSIONS
Edited by Charles R Greathouse IV, Apr 27 2010
a(45)-a(52) from J.W.L. (Jan) Eerland, Dec 22 2022
STATUS
approved