OFFSET
1,2
COMMENTS
The growth of a(n) is very slow. The smallest prime p such that the number of consecutive primes is equal to n for n = 0, 1, 2,... is given by the sequence b(n) = 2, 5, 17, 3, 71, 535673,... (hard).
EXAMPLE
a(2) = 3 because prime(2)= 3 => 10^1-3 = 7, 10^2-3 = 97 and 10^3-3 = 997 with three consecutive primes, but 10^4-3 = 9997 = 13*769 is composite.
MAPLE
with(numtheory):for n from 1 to 100 do:p:=ithprime(n):c:=0:ii:=0:l:=length(p):for k from l to 100 while(ii=0) do:q:=10^k - p:if type(q, prime)=true then c:=c+1:else ii:=1:fi:od: printf(`%d, `, c):od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Apr 24 2014
STATUS
approved