OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..1370
FORMULA
a(n) = A063638(n) - 2.
EXAMPLE
a(2) = 15 = 3*5, which is semiprime and 15+2 = 17 is a prime.
a(6) = 51 = 3*17, which is semiprime and 51+2 = 53 is a prime.
MAPLE
MATHEMATICA
Select[Prime[Range[200]]-2, PrimeOmega[#]==2&] (* Harvey P. Dale, Aug 06 2015 *)
SequencePosition[Table[Which[PrimeQ[n], 1, PrimeOmega[n]==2, 2, True, 0], {n, 800}], {2, _, 1}][[;; , 1]] (* Harvey P. Dale, Oct 05 2023 *)
PROG
(PARI) for(k=1, 1000, if(bigomega(k)==2 && isprime(k+2), print1(k, ", "))) \\ Colin Barker, May 07 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
K. D. Bajpai, Apr 29 2014
STATUS
approved