OFFSET
1,1
COMMENTS
Subsequence of A089531.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
977 is prime, 976 = 2^4*61 and 975 = 3*5^2*13 are not semiprimes, 974 = 2*487 is a semiprime.
MATHEMATICA
SemiPrimeQ[n_Integer] := If[Abs[n] < 2, False, (2 == Plus @@ Transpose[FactorInteger[Abs[n]]][[2]])]; Select[Prime[Range[500]], ! SemiPrimeQ[# - 1] && ! SemiPrimeQ[# - 2] && SemiPrimeQ[# - 3] &] (* T. D. Noe, Sep 27 2012 *)
PROG
(PARI) forprime(p=5, 9999, bigomega(p-3)==2 && bigomega(p-1)!=2 && bigomega(p-2)!=2 & print1(p", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Sep 27 2012
STATUS
approved