OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..3457
EXAMPLE
For p=3, we have in the range [3*3, 3*5] two primes, {11, 13}, and in the latter range [3*5, 5*5] we have three primes {17, 19, 23}, thus 3 is included in the sequence.
MATHEMATICA
Select[Prime@ Range@ 100, Count[Range[# NextPrime[#], NextPrime[#]^2], _?PrimeQ] >= Count[Range[#^2, # NextPrime[#]], _?PrimeQ] &] (* Michael De Vlieger, Mar 30 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 30 2015
STATUS
approved