OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
lk[n_]:=Module[{idn=IntegerDigits[n], k=1}, While[!PrimeQ[FromDigits[ Join[ IntegerDigits[k], idn, IntegerDigits[k]]]], k=k+2]; k]; Table[lk[i], {i, Prime[ Range[100]]}] (* Harvey P. Dale, Apr 26 2015 *)
PROG
(Python)
from sympy import prime, isprime
def a(n):
spn = str(prime(n)); k = 1; sk = str(k)
while not isprime(int(sk + spn + sk)): k += 1; sk = str(k)
return k
print([a(n) for n in range(1, 97)]) # Michael S. Branicky, Jul 01 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 28 2003
EXTENSIONS
More terms from David Wasserman, Oct 24 2005
STATUS
approved