OFFSET
1,1
LINKS
Andreas Boe, Table of n, a(n) for n = 1..10000
EXAMPLE
Decimal 1811 = hex 713 -> 1+8+1+1 = 7+1+3.
MATHEMATICA
sds16Q[n_]:=Module[{s10=Total[IntegerDigits[n]], d16 = IntegerDigits[ n, 16]}, Max[ d16]<10&&Total[d16]==s10]; Select[Prime[Range[750]], sds16Q] (* Harvey P. Dale, Jan 22 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Andreas Boe, Jul 01 2014
STATUS
approved