cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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].

Original entry on oeis.org

1, 2, 4, 7, 7, 12, 13, 16, 16, 13, 18, 12, 11, 6, 4, 1, 0
Offset: 1

Views

Author

N. J. A. Sloane, Dec 28 2010

Keywords

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
		

Crossrefs

For 2- through 9-digit primes the counts are in A177868, A178183, A178447, A178571, A178605, A178876, A178879, A178884.
Cf. 3rd row of A178701.

Programs

  • Mathematica
    Join[SortBy[Tally[Total[IntegerDigits[#]]&/@Prime[Range[26,168]]],First][[;;,2]],{0}] (* Harvey P. Dale, Feb 08 2025 *)