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 n such that 8 divides prime(1)+...+prime(n). 1

%I #9 Feb 05 2021 18:01:50

%S 11,15,17,19,21,27,29,31,37,49,71,79,83,85,95,99,101,103,107,109,111,

%T 115,119,121,135,155,159,161,163,169,171,177,181,183,185,201,205,209,

%U 213,235,237,239,247,255,257,259,261,263,273,275,279,283,285,287,305,309,317,319

%N Numbers n such that 8 divides prime(1)+...+prime(n).

%H Michael De Vlieger, <a href="/A111322/b111322.txt">Table of n, a(n) for n = 1..10000</a>

%t Position[Accumulate@ Prime@ Range@ 320, _?(Mod[#, 8] == 0 &)][[All, 1]] (* _Michael De Vlieger_, Feb 05 2021 *)

%o (PARI) isok(n) = !(vecsum(primes(n)) % 8); \\ _Michel Marcus_, Feb 05 2021

%Y Cf. A007504.

%K nonn

%O 1,1

%A _N. J. A. Sloane_, Nov 05 2005

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 May 10 19:29 EDT 2024. Contains 372388 sequences. (Running on oeis4.)