OFFSET
2,2
COMMENTS
a(n) = 6 for 73 <= n < 985, except a(192) = 5.
EXAMPLE
a(2)=1 because 101 is prime and there are no two 3-digit primes with the same number of ones in base two.
MATHEMATICA
c[x_, n_] :=
Module[{},
Length[Select[Permutations[x],
First[#] != 0 && PrimeQ[FromDigits[#, n]] &]]];
A065852[n_] := Module[{i},
Return[ Max[Map[c[#, n] &, DeleteDuplicatesBy[Tuples[Range[0, n - 1], 3], Table[Count[#, i], {i, 0, n - 1}] &]]]]];
Table[A065852[n], {n, 2, 30}] (* Robert Price, Mar 30 2019 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Sascha Kurz, Nov 24 2001
EXTENSIONS
Definition corrected by David A. Corneth, Apr 23 2016
STATUS
approved