login
Primes with digit sum = 29.
4

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

%S 2999,3989,4799,4889,5879,5897,5987,6599,6689,6779,6869,6959,6977,

%T 7499,7589,7877,7949,8597,8669,8849,8867,9479,9497,9587,9677,9749,

%U 9767,9839,9857,9929,12899,13799,13997,14699,14879,14897,14969,15797,15887,15959

%N Primes with digit sum = 29.

%C Different from A119892.

%H Vincenzo Librandi, <a href="/A106766/b106766.txt">Table of n, a(n) for n = 1..7900</a>

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

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

%o (PARI) select(x->sumdigits(x)==29, primes(2000))

%Y Subsequence of A046704 and of A119892.

%Y Cf. A106754.

%Y Cf. similar sequences listed in A244918.

%K nonn,base

%O 1,1

%A _Zak Seidov_, May 16 2005