OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..7000
MATHEMATICA
Select[Prime[Range[3000]], Total[IntegerDigits[#]]==31&] (* Harvey P. Dale, Apr 01 2011 *)
PROG
(Magma) [p: p in PrimesUpTo(30000) | &+Intseq(p) eq 31]; // Vincenzo Librandi, Jul 08 2014
(PARI) select(x->sumdigits(x)==31, primes(3000)) \\ Michel Marcus, Jul 08 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, May 16 2005
STATUS
approved