OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
419 is a prime with sum of digits = 14, hence belongs to the sequence.
MATHEMATICA
Select[Prime[Range[300]], Divisible[Total[IntegerDigits[#]], 7]&] (* Harvey P. Dale, Jun 27 2021 *)
PROG
(PARI) SumD(x)= { s=0; while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } { n=0; forprime (p=2, 10^5, if (SumD(p)%7 == 0, write("b062336.txt", n++, " ", p); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 05 2009
(Magma) [ p: p in PrimesUpTo(100000) | &+Intseq(p) mod 7 eq 0 ]; // Vincenzo Librandi, Apr 02 2011
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 21 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Jul 06 2001
STATUS
approved