login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062342 Primes whose sum of digits is a multiple of 8. 0
17, 53, 71, 79, 97, 107, 233, 251, 277, 349, 367, 431, 439, 457, 503, 521, 547, 619, 673, 691, 701, 709, 727, 853, 907, 1061, 1069, 1087, 1151, 1223, 1249, 1429, 1447, 1483, 1511, 1601, 1609, 1627, 1663, 1753, 1861, 1933, 1951, 2141, 2213, 2239, 2293 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

EXAMPLE

709 is a prime with sum of digits = 16, hence belongs to the sequence.

MATHEMATICA

Select[Prime[Range[500]], Divisible[Total[IntegerDigits[#]], 8]&] (* From Harvey P. Dale, June 23 2011 *)

PROG

(MAGMA) [ p: p in PrimesUpTo(10000) | &+Intseq(p) mod 8 eq 0 ]; // Vincenzo Librandi, Apr 02 2011

CROSSREFS

Sequence in context: A113915 A042295 A041564 * A061242 A062343 A176254

Adjacent sequences:  A062339 A062340 A062341 * A062343 A062344 A062345

KEYWORD

nonn,base,easy

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jun 21 2001

EXTENSIONS

More terms from Larry Reeves (larryr(AT)acm.org), Jul 06 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 23:53 EST 2012. Contains 205689 sequences.