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.

A082246 Primes that are the sum of 7 consecutive primes.

This page as a plain text file.
%I A082246 #41 Dec 14 2017 16:28:30
%S A082246 197,223,251,281,311,401,431,463,523,593,659,719,757,827,863,947,991,
%T A082246 1063,1171,1753,1901,2347,2393,2647,2689,2731,2777,2819,2953,3347,
%U A082246 3389,3533,3643,3701,3761,3821,4177,4217,4451,4493,5507,5717,5849,5927,6029
%N A082246 Primes that are the sum of 7 consecutive primes.
%H A082246 Syed Iddi Hasan, <a href="/A082246/b082246.txt">Table of n, a(n) for n = 1..10000</a>
%e A082246 2 + 3 + 5 + 7 + 11 + 13 + 17 = 58 = 2*29
%e A082246 3 + 5 + 7 + 11 + 13 + 17 + 19 = 75 = 3*5^2
%e A082246 5 + 7 + 11 + 13 + 17 + 19 + 23 = 95 = 5*19
%e A082246 7 + 11 + 13 + 17 + 19 + 23 + 29 = 119 = 7*17
%e A082246 11 + 13 + 17 + 19 + 23 + 29 + 31 = 143 = 11*13
%e A082246 13 + 17 + 19 + 23 + 29 + 31 + 37 = 169 = 13*13
%e A082246 17 + 19 + 23 + 29 + 31 + 37 + 41 = 197 (prime)
%p A082246 Primes:= select(isprime, [seq(i,i=3..10000,2)]):
%p A082246 S:= ListTools:-PartialSums(Primes):
%p A082246 select(isprime,S[8..-1]-S[1..-8]); # _Robert Israel_, Dec 14 2017
%t A082246 Select[ListConvolve[{1,1,1,1,1,1,1},Prime[Range[200]]],PrimeQ] (* _Harvey P. Dale_, Jul 12 2013 *)
%t A082246 Select[Total/@Partition[Prime[Range[200]],7,1],PrimeQ] (* _Harvey P. Dale_, Jul 24 2017 *)
%o A082246 (PARI) \\ primes in the sum of m odd number of consecutive primes. m=7
%o A082246 psumprm(m,n) = { sr=0; s=0; for(j=1,m, s+=prime(j); ); for(x=1,n, s = s - prime(x)+ prime(x+m); if(isprime(s),sr+=1.0/s; print1(s" ")); ); print(); print(sr) }
%Y A082246 Cf. A180948.
%K A082246 easy,nonn
%O A082246 1,1
%A A082246 _Cino Hilliard_, May 09 2003
%E A082246 Corrected by _Michael Somos_, Feb 01 2004