OFFSET
2,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 2..10000
EXAMPLE
In bases 6, 8, 12 and 14 the digits of n=15 are 15_6=23, 15_8=17, 15_12=13, and 15_14=11. Since in other bases<=16 the expansions of 15 converted to decimal are not primes, a(15)=4.
PROG
(PARI) a(n)=my(m, t, k, i); sum(b=2, n+1, k=n; m=0; i=0; while(k, t=k%b; if(t>9, m=0; break); m+=10^i*t; i++; k\=b); isprime(m)) \\ Charles R Greathouse IV, Jun 01 2011
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev, May 31 2011
EXTENSIONS
a(16)-a(91) from Charles R Greathouse IV, Jun 01 2011
STATUS
approved