OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
19 is a term because prime(8) + 2 = 19 + 2 = 21 = 3*7 and prime(9) + 2 = 25 = 5*5.
MATHEMATICA
fQ[n_] := Plus @@ Flatten[ Table[ #[[2]], {1}] & /@ FactorInteger[n]] == 2; Prime /@ Select[ Range[ 270], fQ[ Prime[ # ] + 2] && fQ[ Prime[ # + 1] + 2] &] (* Robert G. Wilson v, Apr 19 2005 *)
Select[Prime[Range[250]], PrimeOmega[#+2]==PrimeOmega[NextPrime[#]+2]==2&] (* Harvey P. Dale, Apr 01 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Apr 19 2005
EXTENSIONS
Corrected and extended by Robert G. Wilson v, Apr 19 2005
STATUS
approved