login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A101116 Values in A101115 which are records. 4
0, 5, 9, 14, 15, 18, 19, 20 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
All primes up to 1000003 have been tested.
LINKS
PROG
(Python)
from sympy import isprime, nextprime
def agen(): # generator of tuple of terms of (A101116, A101117, A101118)
n, pn, record = 0, 1, -1
while True:
n += 1
pn = nextprime(pn)
s, c, found = str(pn), 0, True
while found:
found = False
for d in "123456789":
if isprime(int(d+s)):
s, c, found = d+s, c+1, True
break
if c > record:
record = c
yield record, pn, int(s)
g = agen()
print([next(g)[0] for n in range(1, 7)]) # Michael S. Branicky, Jun 24 2022
CROSSREFS
Sequence in context: A191219 A061516 A146135 * A218981 A030772 A314799
KEYWORD
base,more,nonn
AUTHOR
Chuck Seggelin (seqfan(AT)plastereddragon.com), Dec 02 2004
EXTENSIONS
a(7)-a(8) from Michael S. Branicky, Jun 24 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 18 22:56 EDT 2024. Contains 370952 sequences. (Running on oeis4.)