The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A129315 Where records occur in A127356. 1
1, 2, 3, 10, 13, 77, 92, 152, 294, 484, 517, 964, 1203, 2876, 14118, 34279, 81191, 103862, 115370, 195097, 334816, 347938, 2126572, 2787194, 3034023, 5707120, 16513290, 17861702, 19454321, 206814544, 500017558, 551865394, 716440254, 891826049, 1383516280 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
The fifth record in A127356 is A129314(5) = 24 = A127356(13), hence a(5) = 13.
PROG
(Python)
from itertools import count, islice
from sympy import isprime, nextprime, prime
def agen():
pn = 2; record = 1; yield 1
for n in count(2):
k, pn = 2, nextprime(pn)
while not isprime(pn + k*k): k += 2
if k > record: record = k; yield n
print(list(islice(agen(), 20))) # Michael S. Branicky, Nov 11 2022
CROSSREFS
Cf. A127356, A129314 (records).
Sequence in context: A024852 A023856 A267008 * A171126 A299205 A268878
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Apr 09 2007
EXTENSIONS
a(27)-a(33) from Donovan Johnson, Dec 09 2008
a(34)-a(35) from Michael S. Branicky, Nov 11 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 May 17 19:53 EDT 2024. Contains 372607 sequences. (Running on oeis4.)