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

 


Product of first n Chen primes.
0

%I #8 Jun 06 2022 10:29:37

%S 1,2,6,30,210,2310,30030,510510,9699690,223092870,6469693230,

%T 200560490130,7420738134810,304250263527210,14299762385778870,

%U 757887406446280110,44715356980330526490,2995928917682145274830

%N Product of first n Chen primes.

%C This first differs from primorials A002110 at a(14) = 14299762385778870 = 47*a(13) rather than 43*a(13) because 43 is the smallest prime that is not a Chen prime (A102540). - _Jonathan Vos Post_, Dec 25 2008

%e a(0) = 1 by definition. a(1) = 2, 2 is first Chen prime, a(2) = 6 since it is the product of the first two Chen primes 2 and 3, ...

%p ischenprime:=proc(n); if (isprime(n) = 'true') then if (isprime(n+2) = 'true' or numtheory[bigomega](n+2) = 2) then RETURN('true') else RETURN('false') fi fi end: ts_chen_prim_numbers:=proc(n) local i,ans,tren; ans:=[1]: tren:=1: for i from 1 to n do if (ischenprime(i) = 'true') then tren := i*tren: ans:=[op(ans), tren]: fi od; RETURN(ans) end: ts_chen_prim_numbers(140);

%t FoldList[Times,Join[{1},Select[Prime[Range[50]],PrimeOmega[#+2]<3&]]] (* _Harvey P. Dale_, Jun 06 2022 *)

%Y Cf. A002110, A109611.

%Y Cf. A102540. - _Jonathan Vos Post_, Dec 25 2008

%K nonn

%O 0,2

%A _Jani Melik_, May 05 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 23 01:59 EDT 2024. Contains 376140 sequences. (Running on oeis4.)