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”).
%I #16 Dec 14 2021 12:12:47
%S 12,14,16,20,21,25,30,32,34,38,49,50,52,56,58,65,70,74,76,85,92,94,98,
%T 102,104,106,110,111,115,119,120,122,124,128,133,140,142,146,148,155,
%U 160,164,166,175,182,184,188,200,201,203,205,209,210,212,214,218,221,230,232,236
%N Composite numbers whose sum of digits is a prime.
%H Harvey P. Dale, <a href="/A141642/b141642.txt">Table of n, a(n) for n = 1..1000</a>
%t Select[Range[300],CompositeQ[#]&&PrimeQ[Total[IntegerDigits[#]]]&] (* _Harvey P. Dale_, Feb 19 2018 *)
%o (Python)
%o from sympy import isprime
%o def ok(n): return isprime(sum(map(int, str(n)))) and not isprime(n)
%o print([k for k in range(237) if ok(k)]) # _Michael S. Branicky_, Dec 14 2021
%Y Cf. A046704, A163622, A228019.
%K nonn,base
%O 1,1
%A _Juri-Stepan Gerasimov_, Sep 03 2008
%E More terms from _N. J. A. Sloane_, Sep 03 2008