OFFSET
1,1
COMMENTS
Primes preceded and followed by larger-than-average prime gaps (see link), then included in A082885.
LINKS
Eric Weisstein's MathWorld, Prime Number Theorem
EXAMPLE
n = 5 is a term because 3 + log(5) < 5 < 7 - log(5).
n = 11 is not a term because 13 - 11 < log(11) = 2.39...
MATHEMATICA
Select[Prime@ Range[2, 300], Min@ Abs[# - NextPrime[#, {-1, 1}]] > Log[#] &] (* Giovanni Resta, Jun 19 2017 *)
PROG
(Sage) [n for n in prime_range(3, 2000) if next_prime(n)-n>log(n) and n-previous_prime(n)>log(n)]
(Magma) f:=func<p|Abs(p-NextPrime(p)) gt Log(p) and Abs(p-PreviousPrime(p)) gt Log(p)>; [p:p in PrimesInInterval(3, 2000)|f(p)]; // Marius A. Burtea, Dec 19 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Giuseppe Coppoletta, Jun 19 2017
STATUS
approved