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”).

Primes with digit sum = 32.
5

%I #9 Sep 08 2022 08:45:18

%S 6899,8699,8969,9689,9887,16889,16979,17789,17987,18797,18869,18959,

%T 19697,19949,24989,25799,25889,25997,26699,26879,26987,27689,27779,

%U 28499,28697,28859,28949,29399,29669,29759,29867,32999,35879,35897

%N Primes with digit sum = 32.

%H Vincenzo Librandi, <a href="/A106768/b106768.txt">Table of n, a(n) for n = 1..6200</a>

%t Select[Prime[Range[10000]], Total[IntegerDigits[#]]==32 &] (* _Vincenzo Librandi_, Jul 08 2014 *)

%o (Magma) [p: p in PrimesUpTo(40000) | &+Intseq(p) eq 32]; // _Vincenzo Librandi_, Jul 08 2014

%o (PARI) select(x->sumdigits(x)==32, primes(4000)) \\ _Michel Marcus_, Jul 08 2014

%Y Cf. similar sequences listed in A244918.

%K nonn,base

%O 1,1

%A _Zak Seidov_, May 16 2005