The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A139463 Numbers n such that (product of the first n odd primes) - 2*prime(n+2) is a prime. 3
3, 4, 6, 10, 15, 42, 49, 56, 63, 106, 170, 182, 246, 255, 507, 627, 848, 864, 961, 1302, 3209, 4994, 7665, 7671, 16405 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(26) > 25000. - Robert Price, Sep 27 2017
LINKS
EXAMPLE
3 is in the sequence because 3*5*7 - 2*11 = 83 is a prime.
MATHEMATICA
k = 1; a = {}; Do[k = k*Prime[n]; If[PrimeQ[k - 2*Prime[n + 1]], AppendTo[a, n - 1]], {n, 2, 2000}]; a
PROG
(PARI) isok(n) = isprime(prod(k=2, n+1, prime(k)) - 2*prime(n+2)); \\ Michel Marcus, Sep 27 2017
CROSSREFS
Sequence in context: A059618 A114736 A099417 * A287067 A310004 A214289
KEYWORD
nonn,more
AUTHOR
Artur Jasinski, Apr 22 2008
EXTENSIONS
Edited by Jens Kruse Andersen, May 03 2008
a(15)-a(25) from Robert Price, Sep 27 2017
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 May 15 11:36 EDT 2024. Contains 372540 sequences. (Running on oeis4.)