A383215 Primes p preceded and followed by gaps whose difference (absolute value) is greater than log(p).
7, 29, 31, 113, 127, 139, 149, 181, 191, 199, 223, 241, 283, 307, 317, 331, 347, 419, 421, 431, 467, 521, 523, 541, 619, 641, 661, 673, 773, 809, 811, 821, 829, 853, 863, 877, 887, 907, 953, 967, 1009, 1021, 1031, 1049, 1051, 1061, 1069, 1087, 1129, 1151, 1153, 1213, 1259, 1277
Offset: 1
Keywords
Examples
7 is a term because abs(5-2*7+11)=2 and log(7)=1.9459. 29 is a term because abs(23-2*29+31)=4 and log(29)=3.3673.
Programs
-
Mathematica
Select[Prime[Range[2,206]],Abs[NextPrime[#,-1]-2#+NextPrime[#]]>Log[#]&] (* James C. McMahon, Apr 29 2025 *)
-
PARI
forprime(P=3, 1300, my(M=P-precprime(P-1), Q=nextprime(P+1)-P, AR1=min(M,Q), AR2=max(M,Q), AR0=log(P)); if(AR2-AR1>AR0, print1(P,", ")));
Formula
Limit_{n->oo} n / PrimePi(a(n)) = 1/e (A068985).
Comments