This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A117243 #12 Jul 28 2023 19:12:51 %S A117243 3,5,7,11,13,17,19,29,31,41,59,71,101,107,109,137,139,149,179,181,191, %T A117243 197,199,227,239,269,281,311,347,419,431,461,521,569,571,599,617,641, %U A117243 659,809,811,821,827,829,857,881,1019,1031,1049,1061,1091,1151,1229 %N A117243 Chen numbers which are also twin primes. %e A117243 (3, 5) are twin numbers and also Chen numbers. %p A117243 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: %p A117243 ts_chen_twin_primes:=proc(n) local i, ans; ans:=[ ]: for i from 1 to n do if (ischenprime(i) = 'true') and (isprime(i+2) = 'true' or isprime(i-2) = 'true') then ans:=[op(ans), i]: fi od; RETURN(ans) end: %p A117243 ts_chen_twin_primes(1230); %t A117243 Select[Prime[Range[250]],PrimeOmega[#+2]<3&&AnyTrue[#+{2,-2},PrimeQ]&] (* _Harvey P. Dale_, Jul 28 2023 *) %Y A117243 Cf. A001097, A109611. %K A117243 nonn %O A117243 1,1 %A A117243 _Jani Melik_, Apr 22 2006 %E A117243 Corrected and extended by _Jani Melik_, May 04 2013