login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A083565 Begins the first chain of n consecutive primes whose product - 2 is prime. 0
3, 3, 3, 3, 3, 3, 3, 23, 3, 131, 3, 67, 7, 3, 43, 461, 523, 3, 1021, 113, 3877, 5, 19, 1493, 3, 5, 7, 3187, 5, 593, 2633, 5, 661, 3371, 179, 3889, 3, 839, 443, 3023, 1579, 1613, 251, 139, 751, 3343, 229, 5233, 4153 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
EXAMPLE
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.
PROG
(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); }
lista(nn) = {for (n = 2, nn, p = 3; while (! isprime(pchain(p, n)), p = nextprime(p+1); ); print1(p, ", "); ); } \\ Michel Marcus, May 18 2013
CROSSREFS
Sequence in context: A105592 A210745 A187471 * A237117 A247970 A063438
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Jun 12 2003
EXTENSIONS
More terms from Michel Marcus, May 18 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 27 23:22 EDT 2024. Contains 372020 sequences. (Running on oeis4.)