OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
349 is a prime with sum of digits =16=4*4, hence belongs to the sequence.
MAPLE
filter:= x -> (convert(convert(x, base, 10), `+`) mod 4 = 0) and isprime(x);
A062338:= select(filter, [seq(2*i+1, i=0..1000)]); # Robert Israel, Apr 20 2014
PROG
(Magma) [ p: p in PrimesUpTo(10000) | &+Intseq(p) mod 4 eq 0 ]; /* Vincenzo Librandi, Apr 02 2011 */
(PARI) is(n)=isprime(n) && sumdigits(n)%4==0 \\ Charles R Greathouse IV, Mar 09 2022
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 21 2001
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org), Jul 06 2001
STATUS
approved