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.

A168322 a(1)=3,a(2)=5; a(n+1)=smallest prime number > a(n-1) such that the sum of any three consecutive terms is a prime.

This page as a plain text file.
%I A168322 #2 Mar 31 2012 12:38:27
%S A168322 3,5,5,7,7,17,13,23,17,31,19,47,23,61,29,67,31,83,37,103,41,107,43,
%T A168322 113,67,127,83,137,97,139,101,149,103,157,107,167,109,173,127,179,137,
%U A168322 193,149,199,151,227,163,229,179,233,181,239,193,241,197,263,199,271,239
%N A168322 a(1)=3,a(2)=5; a(n+1)=smallest prime number > a(n-1) such that the sum of any three consecutive terms is a prime.
%t A168322 a=3;b=5;lst={a,b};Do[Do[If[PrimeQ[q]&&PrimeQ[a+b+q],c=q;Break[]],{q,a+2,9!,2}];AppendTo[lst,c];a=b;b=c,{n,6!}];lst
%Y A168322 Cf. A062391
%K A168322 nonn
%O A168322 1,1
%A A168322 _Vladimir Joseph Stephan Orlovsky_, Nov 22 2009