OFFSET
1,1
COMMENTS
EXAMPLE
The greatest primes with 1, 2 and 3 digits are respectively 7, 97 and 997, hence, a(3) = 7||97||997 = 797997 where || stands for concatenation.
PROG
(Python)
from sympy import prevprime
def aupton(nn):
astr, alst = "", []
for n in range(1, nn+1):
astr += str(prevprime(10**n)); alst.append(int(astr))
return alst
print(aupton(10)) # Michael S. Branicky, Mar 23 2021
(PARI) a(n) = my(s=""); for (k=1, n, s = Str(s, precprime(10^k))); eval(s); \\ Michel Marcus, Mar 24 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Mar 23 2021
STATUS
approved