cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A111322 Numbers k such that 8 divides prime(1) + ... + prime(k).

This page as a plain text file.
%I A111322 #13 May 14 2024 03:58:51
%S A111322 11,15,17,19,21,27,29,31,37,49,71,79,83,85,95,99,101,103,107,109,111,
%T A111322 115,119,121,135,155,159,161,163,169,171,177,181,183,185,201,205,209,
%U A111322 213,235,237,239,247,255,257,259,261,263,273,275,279,283,285,287,305,309,317,319
%N A111322 Numbers k such that 8 divides prime(1) + ... + prime(k).
%H A111322 Michael De Vlieger, <a href="/A111322/b111322.txt">Table of n, a(n) for n = 1..10000</a>
%t A111322 Position[Accumulate@ Prime@ Range@ 320, _?(Mod[#, 8] == 0 &)][[All, 1]] (* _Michael De Vlieger_, Feb 05 2021 *)
%o A111322 (PARI) isok(n) = !(vecsum(primes(n)) % 8); \\ _Michel Marcus_, Feb 05 2021
%o A111322 (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
%Y A111322 Cf. A007504, A103208, A111318, A111319, A111320, A111321, A111323, A111324, A111325, A111326, A111327.
%K A111322 nonn
%O A111322 1,1
%A A111322 _N. J. A. Sloane_, Nov 05 2005