OFFSET
0,2
COMMENTS
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
EXAMPLE
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, ...
MAPLE
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);
MATHEMATICA
FoldList[Times, Join[{1}, Select[Prime[Range[50]], PrimeOmega[#+2]<3&]]] (* Harvey P. Dale, Jun 06 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jani Melik, May 05 2006
STATUS
approved