login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A101118
a(n) = the resulting prime generated when the process described in A101115 is applied to A101117(n).
4
2, 612113, 5372126317, 4818372912366173, 21291981879276213799, 912733515196363393600307, 668334992181698187977197951, 231879245133561335194866134641, 933651219687395363156136052921903
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