OFFSET
1,6
COMMENTS
"Between 10^(n-1) and 10^n" is equivalent to saying "with n digits".
Up to 10^600 at least, the largest term of all prime septuplets (= set of 7 consecutive primes {p1, ..., p7} with minimal possible diameter p7 - p1 = 20) has the same number of digits as the smallest term. (*)
(*) We checked that n = 1, 2, 3, 5, 17 and 18 are the only values below 600 with more than 2 primes in the interval [10^n - 20, 10^n + 20]. So the probability of finding a 7-tuple with diameter 20 in such an interval seems exceedingly small. - M. F. Hasler, Apr 12 2022
EXAMPLE
a(1) = a(3) = 0 because there is no single-digit nor a 3-digit prime to start a prime septuplet.
a(2) = a(4) = a(5) = 1 because 11 = A022009(1), 5639 = A022010(1) and 88799 = A022010(2) are the only prime with 2, 4 resp. 5 digits to start a prime septuplet.
Then there are a(6) = 4 six-digit primes, 165701, 284729, 626609 and 855719, which start a prime septuplet.
PROG
(PARI) apply( {A350827(n, v=vector(6), c)=forprime(p=10^(n-1), 10^n, v[n=1+n%#v]+20==(v[n]=p) && c++); c}, [1..8]) \\ becomes slow for n > 8. - M. F. Hasler, Apr 12 2022
CROSSREFS
KEYWORD
nonn,hard,more,base
AUTHOR
M. F. Hasler, Mar 01 2022
STATUS
approved