|
|
A088062
|
|
a(1) = 2; thereafter a(n) = smallest number of copies of (the decimal expansion of) n that are needed to prefix A088061(n-1) with in order to get a prime (the prime being A088061(n)).
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
|
|
PROG
|
(PARI) x=0; n=-1; for(k=1, 9, z=n; while(1, n++; x=x+k*10^n; if(ispseudoprime(x), print(z=n-z); break))) \\ Dmitry Petukhov, Oct 15 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,more,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|