OFFSET
1,2
COMMENTS
If prime(n) has k digits then a(k) is the smallest prime(m) where 10^k * prime(m) + prime(n) is a prime.
In base 10, no prime can be prefixed to 2 or 5 to make another prime.
REFERENCES
John Derbyshire, Prime obsession. Joseph Henry Press, Washington, DC 2003
Marcus du Sautoy, Die Musik der Primzahlen. Auf den Spuren des groessten Raetsels der Mathematik, Beck, Muenchen 2004
Theo Kempermann, Zahlentheoretische Kostproben, Harri Deutsch, 2. aktualisierte Auflage 2005
EXAMPLE
a(2) = 2 because prime(2) = 3, and the concatenation of 2 and 3 gives the prime 23.
a(3) = 0 because prime(3) = 5 and there is no prime to concatenate with to give another prime.
a(4) = 3 because prime(5) = 7 but the concatenation with 2 gives 27 = 3^3, so it has to be 3 in order to give 37, which is prime.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eva-Maria Zschorn (e-m.zschorn(AT)zaschendorf.km3.de), Feb 15 2010
STATUS
approved