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.

A179012 Primes that are the sum of three consecutive composite odd numbers.

This page as a plain text file.
%I A179012 #16 Dec 09 2012 09:26:43
%S A179012 61,73,107,163,197,233,263,271,331,397,409,419,467,523,571,599,677,
%T A179012 691,757,827,839,883,929,997,1039,1051,1063,1097,1123,1153,1163,1171,
%U A179012 1187,1223,1231,1291,1301,1367,1433,1493,1523,1531,1571,1619,1627,1637,1667,1693,1783
%N A179012 Primes that are the sum of three consecutive composite odd numbers.
%H A179012 Harvey P. Dale, <a href="/A179012/b179012.txt">Table of n, a(n) for n = 1..1000</a>
%e A179012 15+21+25=61, 21+25+27=73, 33+35+39=107.
%t A179012 lst={};Do[If[!PrimeQ[n],s=n;k=1,Continue[]];If[!PrimeQ[n+2],s+=n+2;k=2;q=2,If[!PrimeQ[n+4],s+=n+4;k=2;q=4,If[!PrimeQ[n+6],s+=n+6;k=2;q=6]]];If[!PrimeQ[n+q+2],s+=n+q+2;k=3;q+=2,If[!PrimeQ[n+q+4],s+=n+q+4;k=3;q+=4,If[!PrimeQ[n+q+6],s+=n+q+6;k=3;q+=6]]];If[PrimeQ[s],AppendTo[lst,s]],{n,9,6!,2}];lst
%t A179012 nn=1001;With[{compodd=Complement[Range[9,nn,2],Prime[Range[ PrimePi[ nn]]]]}, Select[ Total/@ Partition[compodd,3,1],PrimeQ]] (* _Harvey P. Dale_, Dec 09 2012 *)
%Y A179012 Cf. A034962, A034965, A082246, A179007.
%K A179012 nonn
%O A179012 1,1
%A A179012 _Vladimir Joseph Stephan Orlovsky_, Jan 07 2011