OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
Intersection of A000040 (primes) and A235227 (digit sum = 16); also equals { p in A000040 | A007953(p) = 16 }. - M. F. Hasler, Mar 09 2022
MATHEMATICA
Reap[Do[If[16==Apply[Plus, IntegerDigits[p=Prime[n]]], Sow[p]], {n, 1000}]][[2, 1]] (* Zak Seidov, Oct 30 2009 *)
Select[Prime[Range[500]], Total[IntegerDigits[#]]==16&] (* Harvey P. Dale, Nov 14 2011 *)
PROG
(Magma) [p: p in PrimesUpTo(4000) | &+Intseq(p) eq 16]; // Vincenzo Librandi, Jul 08 2014
(PARI) select( {is_A106757(n)= sumdigits(n)==16 && isprime(n)}, primes([1, 3333])) \\ M. F. Hasler, Mar 09 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, May 16 2005
EXTENSIONS
More terms from Zak Seidov, Oct 30 2009
STATUS
approved