OFFSET
1,1
COMMENTS
Or, primes p such that p+/-2 are semiprimes. - Zak Seidov, Mar 08 2006
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000 (first 1000 term from T. D. Noe)
FORMULA
EXAMPLE
MAPLE
q:= p-> isprime(p) and map(numtheory[bigomega], {p-2, p+2})={2}:
select(q, [$2..2000])[]; # Alois P. Heinz, Apr 01 2024
MATHEMATICA
Select[Prime[Range[300]], PrimeOmega[#+2] == PrimeOmega[#-2] == 2&] (* Jean-François Alcover, Mar 02 2019 *)
PROG
(PARI) { n=0; for (m=2, 10^9, p=prime(m); if (bigomega(p + 2) == 2 && bigomega(p - 2) == 2, write("b063643.txt", n++, " ", p); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 26 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 21 2001
STATUS
approved