OFFSET
1,1
COMMENTS
m-2 is multiple of 3.
m is of the form 12k-1.
This sequence is subset of A005385.
Following a suggestion of Claudio Meller.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..8400
EXAMPLE
2099 is prime, 2098=2*1049 is semiprime, 2097=3*3*233 is 3-almost prime.
MATHEMATICA
primeCount[n_] := Plus @@ Transpose[FactorInteger[n]][[2]]; Select[Range[10000], primeCount[#] == 1 && primeCount[#-1] == 2 && primeCount[#-2] == 3 &] (* T. D. Noe, Nov 28 2011 *)
Select[Range[10000], PrimeOmega[Range[#, #+2]]=={3, 2, 1}&]+2 (* Harvey P. Dale, Dec 10 2011 *)
PROG
(PARI) list(lim)=my(v=List(), L=(lim-2)\3, t); forprime(p=3, L\3, forprime(q=3, min(p, L\p), t=3*p*q+2; if(isprime(t) && isprime((t-1)/2), listput(v, t)))); Set(v) \\ Charles R Greathouse IV, Feb 01 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Nov 27 2011
STATUS
approved