OFFSET
1,1
EXAMPLE
a(3) = 5372126317 because 5372126317 is the last prime that can be generated by successively prepending nonzero digits to A101117(3). A101117(3) is 7. A101116(3) indicates that 9 digits can be successively prepended to 7 generating a new prime each time. Doing so and giving preference to the smallest digit which meets the requirement, generates the following primes: 17, 317, 6317, 26317, 126317, 2126317, 72126317, 372126317, 5372126317.
PROG
(Python)
g = agen() # uses agen() and imports from A101116
print([next(g)[2] for n in range(1, 7)]) # Michael S. Branicky, Jun 24 2022
CROSSREFS
KEYWORD
base,more,nonn
AUTHOR
Chuck Seggelin (seqfan(AT)plastereddragon.com), Dec 02 2004
EXTENSIONS
a(7)-a(8) and typo corrected in a(6) from Michael S. Branicky, Jun 24 2022
a(9) from Michael S. Branicky, Jul 26 2024
STATUS
approved