cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A239234 Number of Proth primes < 10^n.

Original entry on oeis.org

0, 2, 6, 17, 36, 99, 249, 651, 1774, 5018, 13587, 39170, 115968, 323061, 953827, 2870277, 8165537, 24569821
Offset: 0

Views

Author

Arkadiusz Wesolowski, Mar 13 2014

Keywords

Examples

			a(2) = 6 since first 6 Proth primes are 3, 5, 13, 17, 41, 97 all < 10^2.
		

Crossrefs

Cf. A080076.

Programs

  • PARI
    a(n)=my(c=0); for(m=1, floor(n*log(10)/log(2)), k=1; until(k>2^m, p=k*2^m+1; if(p>10^n, break); if(isprime(p), c++); k=k+2)); c;