OFFSET
2,1
COMMENTS
For bases above ten, use multidigit numbers to represent the new number. See the example.
EXAMPLE
a(15) = 41. 17d = 12, 19d = 14, 23d = 18, 29d = 114, 31d = 21 and 37d = 27, all of which are composite. But 41d = 211 which is a prime.
MATHEMATICA
Do[ k = PrimePi[n] + 1; While[ !PrimeQ[ FromDigits[ IntegerDigits[ Prime[k], n]]], k++ ]; Print[ Prime[k]], {n, 2, 50} ]
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Nov 15 2001
EXTENSIONS
More terms from David Wasserman, Aug 30 2002
STATUS
approved