OFFSET
0,2
COMMENTS
The primes up to 2^(2^n) are exactly determined from the primes up to 2^(2^(n-1)), n >= 1, with the sieve of Eratosthenes. This gives an inductive algorithm to find all primes up to any integer (modulo space and time constraints...) This means that all odd primes are ultimately determined by the even prime, 2. - Daniel Forgues, Dec 04 2011
EXAMPLE
a(3) = 54 because 2^(2^3) = 256 and there are 54 primes <= 256.
PROG
(PARI) a(n)=primepi(1<<2^n) \\ Charles R Greathouse IV, Dec 05 2011
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Harry J. Smith, Dec 27 2008
EXTENSIONS
a(6) from Charles R Greathouse IV, Dec 05 2011
STATUS
approved