OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..610
EXAMPLE
a(5) = 3 and the number 532313 is a prime.
MATHEMATICA
a[1] = 5; 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, 63}] (* Robert G. Wilson v, Aug 05 2005 *)
PROG
(Python)
from sympy import isprime
def aupton(terms):
astr, alst = '5', [5]
for n in range(2, terms+1):
an = 1
while not isprime(int(astr + str(an))): an += 1
astr, alst = astr + str(an), alst + [an]
return alst
print(aupton(63)) # Michael S. Branicky, May 03 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Mar 26 2002
EXTENSIONS
More terms from Jason Earls, Jun 13 2002
STATUS
approved