login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = number of 4-digit primes with digit sum n, where n runs through the non-multiples of 3 in the range [2..34].
4

%I #10 Mar 30 2012 16:51:57

%S 0,4,8,20,19,31,52,67,77,93,101,116,95,92,91,63,51,29,30,16,5,0,1

%N a(n) = number of 4-digit primes with digit sum n, where n runs through the non-multiples of 3 in the range [2..34].

%H BigPrimes.net, <a href="//http://www.bigprimes.net/sum-of-digits/">Digit sums of primes</a>

%e Digit-sums of 4-digit primes

%e Sum count

%e 2 0

%e 4 4

%e 5 8

%e 7 20

%e 8 19

%e 10 31

%e 11 52

%e 13 67

%e 14 77

%e 16 93

%e 17 101

%e 19 116

%e 20 95

%e 22 92

%e 23 91

%e 25 63

%e 26 51

%e 28 29

%e 29 30

%e 31 16

%e 32 5

%e 34 0

%e 35 1

%K nonn,base,fini,full

%O 1,2

%A _N. J. A. Sloane_, Dec 28 2010