A178183 a(n) = number of 3-digit primes with digit sum n, where n runs through the non-multiples of 3 in the range [2..26].
1, 2, 4, 7, 7, 12, 13, 16, 16, 13, 18, 12, 11, 6, 4, 1, 0
Offset: 1
Examples
Digit-sums of 3-digit primes Sum count 2 1 4 2 5 4 7 7 8 7 10 12 11 13 13 16 14 16 16 13 17 18 19 12 20 11 22 6 23 4 25 1 26 0
Links
- BigPrimes.net, Digit sums of primes
Crossrefs
Programs
-
Mathematica
Join[SortBy[Tally[Total[IntegerDigits[#]]&/@Prime[Range[26,168]]],First][[;;,2]],{0}] (* Harvey P. Dale, Feb 08 2025 *)