OFFSET
1,2
COMMENTS
The sequence is written in base 10.
Rémy Sigrist's and Andrew Weimholt's methods from A326344 both show that a(n) <= 314, but the true maximum is 310. This can be shown by adapting Weimholt's argument to use values of n mod 30 rather than n mod 6.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1 by definition. The next prime after a(6) = 6 is 7_10 = 10_7, so a(7) = 1_7 = 1_10 since 7 is prime.
MAPLE
A:= Vector(100):
A[1]:= 1:
for n from 2 to 100 do
if isprime(n) then
r:= nextprime(A[n-1])
else
for r from A[n-1]+1 while isprime(r) do od
fi;
A[n]:= revdigs(r)
od:
convert(A, list); # Robert Israel, Mar 23 2021
CROSSREFS
KEYWORD
AUTHOR
Robert Dougherty-Bliss, Sep 14 2019
STATUS
approved