login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Rearrangement of odd primes such that sum of three successive terms is composite.
1

%I #4 Dec 05 2013 19:55:38

%S 3,5,7,13,19,17,29,11,23,31,37,43,41,59,47,53,61,71,73,101,79,67,89,

%T 97,103,109,83,107,113,131,127,137,139,149,157,163,151,167,179,173,

%U 181,191,193,197,199,227,211,229,223,233,239,241,251,257,263,269,271

%N Rearrangement of odd primes such that sum of three successive terms is composite.

%o (PARI) print1("3,5,"):pr=vector(10000):v=vector(100):v[1]=3:v[2]=5:pr[3]=1:pr[5]=1:for(n=3,100, forprime(p=3,10000,if(!pr[p]&&!isprime(v[n-2]+v[n-1]+p),print1(p","):v[n]=p:pr[p]=1:break)))

%Y Cf. A075572.

%K nonn

%O 0,1

%A _Amarnath Murthy_, Sep 25 2002

%E Corrected and extended by _Ralf Stephan_, Mar 27 2003