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!)
A048599 Partial products of the sequence (A001097) of twin primes. 7
1, 3, 15, 105, 1155, 15015, 255255, 4849845, 140645505, 4360010655, 178760436855, 7686698784765, 453515228301135, 27664428926369235, 1964174453772215685, 143384735125371745005, 14481858247662546245505 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
EXAMPLE
a(0) = 1 by the usual convention for an empty product. - N. J. A. Sloane, Feb 15 2024
a(5) = 15015 because 3 * 5 * 7 * 11 * 13 = 15015.
MATHEMATICA
nextTwin[{list_, q_}] := Module[{p=NextPrime[q]}, {Join[list, If[PrimeQ[p-2]||PrimeQ[p+2], {p}, {}]], p}]
a001097[n_] := First[NestWhile[nextTwin, {{3}, 3}, Length[First[nextTwin[#]]]<=n&]]
a048599[n_] := FoldList[Times, 1, a001097[n]]
a048599[16] (* Hartmut F. W. Hoft, Apr 27 2021 *)
Join[{1}, FoldList[Times, Union[Flatten[Select[Partition[Prime[Range[30]], 2, 1], #[[2]]-#[[1]]==2&]]]]] (* Harvey P. Dale, Feb 15 2024 *)
CROSSREFS
Sequence in context: A354218 A118750 A070826 * A129731 A269455 A088109
KEYWORD
easy,nonn
AUTHOR
Den Roussel (DenRoussel(AT)webtv.net)
EXTENSIONS
More terms from Michael Lugo (mlugo(AT)thelabelguy.com), Dec 22 1999
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 6 00:30 EDT 2024. Contains 373110 sequences. (Running on oeis4.)