OFFSET
0,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..45
EXAMPLE
a(1) = 4 since the primes 5, 7, 11 and 13 lie between 4 and 16.
MAPLE
a:=proc(n) local ct, j: ct:=0: for j from 4^n to 4^(n+1) do if isprime(j)=true then ct:=ct+1 else fi: ct: od: end: seq(a(n), n=0..8); # execution takes hours - Emeric Deutsch, Apr 16 2006
PROG
(PARI) { for(n=0, 30, istrt=4^n ; iend=istrt*4 ; resul=0 ; forprime(p=istrt+1, iend, resul++ ; ) ; print1(resul, ", ") ; ) ; } \\ R. J. Mathar, Apr 21 2006
(PARI) a(n) = primepi(4^(n+1)) - primepi(4^n) \\ Michel Marcus, Jun 21 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Greg Huber, Apr 14 2006
EXTENSIONS
More terms from Brian Kuehn (brk158(AT)psu.edu), Apr 19 2006
a(23)-a(27) from Amiram Eldar, Jun 11 2024
STATUS
approved