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) isok(n) = isprime(n) && sumdigits(n) % 7 == 0 \\ 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