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!)
A243154 Smallest k>=0 such that prime(n)*prime(n+k)-2 is prime. 3
0, 0, 0, 0, 4, 0, 2, 0, 4, 0, 7, 0, 4, 0, 0, 4, 11, 0, 2, 0, 4, 7, 7, 0, 12, 4, 0, 0, 2, 9, 0, 0, 2, 0, 6, 2, 1, 4, 10, 0, 13, 4, 0, 4, 10, 4, 0, 0, 2, 8, 0, 0, 5, 6, 0, 30, 20, 16, 4, 11, 7, 0, 5, 13, 0, 11, 18, 0, 2, 18, 5, 0, 1, 4, 5, 10, 4, 7, 4, 5, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
One of the possible illustrations of Chen's theorem: there are infinitely many primes p such that p+2 is semiprime.
For a dual sequence, see A243158.
LINKS
MATHEMATICA
skp[n_]:=Module[{k=0, p=Prime[n]}, While[!PrimeQ[p Prime[n+k]-2], k++]; k]; Array[skp, 90] (* Harvey P. Dale, Aug 15 2021 *)
PROG
(PARI) vector(1000, n, k=0; while(!isprime(prime(n)*prime(n+k)-2), k++); k) \\ Colin Barker, May 31 2014
CROSSREFS
Cf. A243158.
Sequence in context: A350708 A319037 A067565 * A307717 A226782 A010635
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, May 31 2014
EXTENSIONS
a(25) corrected and more terms from Colin Barker, May 31 2014
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 June 5 14:50 EDT 2024. Contains 373107 sequences. (Running on oeis4.)