login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A111322 Numbers k such that 8 divides prime(1) + ... + prime(k). 11
11, 15, 17, 19, 21, 27, 29, 31, 37, 49, 71, 79, 83, 85, 95, 99, 101, 103, 107, 109, 111, 115, 119, 121, 135, 155, 159, 161, 163, 169, 171, 177, 181, 183, 185, 201, 205, 209, 213, 235, 237, 239, 247, 255, 257, 259, 261, 263, 273, 275, 279, 283, 285, 287, 305, 309, 317, 319 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
Position[Accumulate@ Prime@ Range@ 320, _?(Mod[#, 8] == 0 &)][[All, 1]] (* Michael De Vlieger, Feb 05 2021 *)
PROG
(PARI) isok(n) = !(vecsum(primes(n)) % 8); \\ Michel Marcus, Feb 05 2021
(PARI) lista(pmax) = {my(s = 0, k = 0); forprime(p = 2, pmax, k++; s += p; if(!(s % 8), print1(k, ", "))); } \\ Amiram Eldar, May 14 2024
CROSSREFS
Sequence in context: A139065 A365329 A186404 * A069822 A116999 A309362
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 05 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 1 15:28 EDT 2024. Contains 374818 sequences. (Running on oeis4.)