cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A368462 Prime averages of first k odd primes for some k.

This page as a plain text file.
%I A368462 #6 Jan 22 2024 06:35:58
%S A368462 3,5,1117,200325407
%N A368462 Prime averages of first k odd primes for some k.
%C A368462 a(5) > 8*10^10.
%o A368462 (Python)
%o A368462 from sympy import nextprime, isprime
%o A368462 p, s, k = 2, 0, 0
%o A368462 while k < 3*10**7:
%o A368462     p = nextprime(p); s += p; k += 1; r = divmod(s, k)
%o A368462     if r[1] == 0 and isprime(r[0]): print(r[0], end = ", ")
%Y A368462 Prime terms of A363477.
%Y A368462 Cf. A050248, A071148, A097961.
%K A368462 nonn,more
%O A368462 1,1
%A A368462 _Ya-Ping Lu_, Dec 25 2023