OFFSET
0,2
LINKS
Chris Caldwell, The Top 20 Proth Primes
Chris Caldwell, The Prime Glossary, Proth prime
EXAMPLE
a(2) = 6 since first 6 Proth primes are 3, 5, 13, 17, 41, 97 all < 10^2.
PROG
(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;
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Mar 13 2014
STATUS
approved