OFFSET
1,7
COMMENTS
Conjecture: a(n) > 0 for n > 1.
Conjecture checked up to n = 2^28 - 1.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
MATHEMATICA
Table[Length[Select[Range[n^2, n^2 - Log[2, n]^2, -1], PrimeQ]], {n, 100}] (* T. D. Noe, Mar 21 2013 *)
PROG
(Python)
import math
def isprime(k):
s = 3
while s*s <= k:
if k%s==0: return 0
s+=2
return 1
for n in range(1, 333):
c = 0
top = n*n
for i in range(top - int(math.log(n, 2)**2), top):
if i&1: c += isprime(i)
print(str(c), end=', ')
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Mar 21 2013
STATUS
approved