login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Begins the first chain of n consecutive primes whose product - 2 is prime.
0

%I #8 Feb 11 2014 19:05:42

%S 3,3,3,3,3,3,3,23,3,131,3,67,7,3,43,461,523,3,1021,113,3877,5,19,1493,

%T 3,5,7,3187,5,593,2633,5,661,3371,179,3889,3,839,443,3023,1579,1613,

%U 251,139,751,3343,229,5233,4153

%N Begins the first chain of n consecutive primes whose product - 2 is prime.

%e 3 is the smallest prime in 3, 5, 7, 11 which is the first chain of four consecutive primes whose product - 2 is prime: 3 * 5 * 7 * 11 - 2 = 1153 (prime). Hence a(4) = 3.

%o (PARI) pchain(p, n) = {my(pp = p, i, q); for (i=1, n-1, q = nextprime(p+1); pp *= q; p = q;); return (pp-2);}

%o lista(nn) = {for (n = 2, nn, p = 3; while (! isprime(pchain(p, n)), p = nextprime(p+1);); print1(p, ", "););} \\ _Michel Marcus_, May 18 2013

%K nonn

%O 2,1

%A _Joseph L. Pe_, Jun 12 2003

%E More terms from _Michel Marcus_, May 18 2013