login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A349996
Number of primes in an interval [k^2,(k+1)^2] setting a new record.
4
2, 3, 4, 5, 6, 7, 9, 10, 12, 13, 15, 16, 17, 21, 22, 23, 24, 27, 29, 30, 31, 33, 34, 35, 36, 38, 39, 40, 41, 42, 44, 46, 48, 49, 50, 53, 56, 59, 60, 64, 66, 67, 74, 75, 77, 78, 80, 82, 84, 91, 96, 97, 98, 103, 105, 109, 110, 111, 112, 119, 125, 129, 133, 135, 139, 146
OFFSET
1,1
LINKS
FORMULA
a(n) = A014085(A333846(n)).
PROG
(PARI) a349996(limit) = {my(nmax=0); for(k=1, limit, my(np=primepi((k+1)^2)-primepi(k^2)); if(np>nmax, print1(np, ", "); nmax=np))};
a349996(900)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Dec 11 2021
STATUS
approved