OFFSET
5,1
EXAMPLE
n=10: A000040(10)=29 in base 11 is 2*11^1+9*11^0=31 isprime,
29 in base 12 is 2*12^1+9*12^0=33=3*11, therefore a(10)=12.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Feb 12 2004
STATUS
approved