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.

A185313 Start of a sequence of n consecutive primes such that the sum of any three consecutive members is also prime.

This page as a plain text file.
%I A185313 #25 Jun 07 2017 09:36:22
%S A185313 2,2,5,5,5,17,17,53507,364187,155650237,15644021363,604394270371,
%T A185313 767783880089
%N A185313 Start of a sequence of n consecutive primes such that the sum of any three consecutive members is also prime.
%C A185313 a(14) > 1.8*10^14. - _Giovanni Resta_, Jun 07 2017
%e A185313 Vacuously, the sum of every three consecutive members of {2, 3} is prime, so a(2) = 2.  a(4) = 5 because 5 + 7 + 11 and 7 + 11 + 13 are prime.
%o A185313 (PARI) a(n)=if(n<3,return(2),n-=2);my(len=0,p=2,q=3);forprime(r=5,default(primelimit),if(isprime(p+q+r),if(len++==n,my(t=p);for(i=2,n,t=precprime(t-1));return(t)),len=0);p=q;q=r) \\ _Charles R Greathouse IV_, Feb 08 2012
%Y A185313 Cf. A072225.
%K A185313 nonn,more
%O A185313 1,1
%A A185313 _Charles R Greathouse IV_, Feb 08 2012
%E A185313 a(11) from _Charles R Greathouse IV_, Feb 10 2012
%E A185313 a(12) from _Charles R Greathouse IV_, Feb 12 2012
%E A185313 a(13) from _Zak Seidov_, Jun 03 2017