OFFSET
1,2
EXAMPLE
a(31)=3 because 31 yields primes for 3 bases in [2,10]: 31 = 11111_2 = 1011_3 = 133_4 = 111_5 = 51_6 = 43_7 = 37_8 = 34_9 = 31_10, and of the decimal numbers 11111, 1011, 133, 111, 51, 43, 37, 34, and 31, the 3 primes are 43, 37, and 31.
MATHEMATICA
Array[Count[FromDigits /@ IntegerDigits[#, Range[2, 10]], _?PrimeQ] &, 105] (* Michael De Vlieger, Oct 11 2018 *)
PROG
(PARI) a(n) = sum(b=2, 10, isprime(fromdigits(digits(n, b), 10))); \\ Michel Marcus, Sep 30 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Anton Deynega, Sep 29 2018
STATUS
approved