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!)
A093078 Primes p = prime(i) such that p(i)# - p(i+1) is prime. 3
5, 7, 11, 13, 19, 79, 83, 89, 149, 367, 431, 853, 4007, 8819, 8969, 12953, 18301, 18869 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(19) > 22013. - J.W.L. (Jan) Eerland, Dec 19 2022
a(19) > 63317. - J.W.L. (Jan) Eerland, Dec 20 2022
LINKS
EXAMPLE
3 = p(2) is in the sequence because p(2)# + p(3) = 11 is prime.
MATHEMATICA
Do[p = Product[ Prime[i], {i, 1, n}]; q = Prime[n + 1]; If[ PrimeQ[p - q], Print[ Prime[n]]], {n, 1, 1435}]
Module[{nn=1120, pr1, pr2, prmrl}, pr1=Prime[Range[nn]]; pr2=Prime[Range[ 2, nn+1]]; prmrl=FoldList[Times, pr1]; Transpose[Select[Thread[{pr1, pr2, prmrl}], PrimeQ[#[[3]]-#[[2]]]&]][[1]]] (* Harvey P. Dale, Dec 07 2015 *)
n=1; Monitor[Parallelize[While[True, If[PrimeQ[Product[Prime[k], {k, 1, n}]-Prime[n + 1]], Print[Prime[n]]]; n++]; n], n] (* J.W.L. (Jan) Eerland, Dec 19 2022 *)
CROSSREFS
Sequence in context: A339347 A167460 A045439 * A314298 A314299 A349459
KEYWORD
nonn,hard,more
AUTHOR
Robert G. Wilson v, Oct 25 2003
EXTENSIONS
a(16)-a(18) from J.W.L. (Jan) Eerland, Dec 19 2022
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 23 09:59 EDT 2024. Contains 372760 sequences. (Running on oeis4.)