OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
15=3*5=1+2*7, 22=2*11=1+3*7.
MATHEMATICA
semiPrimeQ[n_] := Total[FactorInteger[n]][[2]] == 2; Select[7*Range[150] + 1, semiPrimeQ] (* Alonso del Arte, Feb 23 2011 *)
Select[7*Range[200]+1, PrimeOmega[#]==2&] (* Harvey P. Dale, Jul 27 2024 *)
PROG
(PARI) forstep(n=1, 1000, 7, bigomega(n)==2&print1(n", "))
(Magma) IsSemiprime:= func<n | &+[d[2]: d in Factorization(n)] eq 2>; [s: n in [1..200] | IsSemiprime(s) where s is 7*n + 1]; // Vincenzo Librandi, Sep 22 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 23 2011
STATUS
approved