A152468 Smallest of five consecutive primes whose sum is a prime.
5, 7, 11, 13, 19, 29, 31, 43, 53, 59, 67, 73, 79, 107, 109, 113, 127, 137, 149, 151, 157, 163, 179, 191, 211, 223, 229, 263, 269, 307, 311, 349, 353, 359, 379, 383, 401, 409, 419, 433, 443, 449, 461, 467, 479, 521, 523, 541, 557, 569, 571, 577, 599, 613, 619
Offset: 1
Keywords
Links
- Zak Seidov, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
lst={};Do[p0=Prime[n];p1=Prime[n+1];p2=Prime[n+2];p3=Prime[n+3];p4=Prime[n+4];If[PrimeQ[p=p0+p1+p2+p3+p4],AppendTo[lst,p0]],{n,6!}];lst Transpose[Select[Partition[Prime[Range[500]], 5, 1], PrimeQ[Total[#]] &]][[1]] (* Harvey P. Dale, Jun 05 2013 *) Prime[Select[Range[150], PrimeQ[Sum[Prime[# + i], {i, 0, 4}]] &]] (* Bruno Berselli, Aug 21 2013 *)
-
PARI
{a=2; b=3; c=5; d=7; e=11; for(n=1,100, s=a+b+c+d+e; if(isprime(s), print1(a", ")); a=b; b=c; c=d; d=e; e=nextprime(e+2))} /* Zak Seidov, Dec 17 2012 */
Extensions
More cross references from Harvey P. Dale, Jun 05 2013
Comments