OFFSET
1,1
FORMULA
EXAMPLE
6^2-3=33 = 3*11 and 6^2+3=39 = 3*13 are semiprimes derived from q=6, so q=6 is in the sequence.
MATHEMATICA
f[n_]:=Last/@FactorInteger[n]=={1, 1}||Last/@FactorInteger[n]=={2}; lst={}; Do[If[f[n], a=n^2-3; b=n^2+3; If[f[a]&&f[b], AppendTo[lst, n]]], {n, 8!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Feb 09 2010
EXTENSIONS
Definition rephrased - R. J. Mathar, Mar 11 2010
STATUS
approved