OFFSET
1,1
COMMENTS
All terms are even.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 18 is a term because the 18-th prime and 18-th semiprime are 61 and 51 respectively, 18 + 61 = 79 is prime and 18 + 51 = 69 = 3 * 23 is semiprime.
MAPLE
N:= 100: # for a(1) .. a(N)
with(priqueue):
initialize(pq);
insert([-4, 2, 2], pq);
p:= 1:
R:= NULL: count:= 0:
for n from 1 while count < N do
p:= nextprime(p);
t:= extract(pq);
if n::even and isprime(n + p) and numtheory:-bigomega(n - t[1])=2 then R:= R, n; count:= count+1 fi;
q:= nextprime(t[3]);
if t[2] = t[3] then insert([-q^2, q, q], pq) fi;
insert([-t[2]*q, t[2], q], pq);
od:
R;
MATHEMATICA
lim=1360; i=1; Do[Until[PrimeOmega[i]==2, i++]; Sp[n]=i, {n, lim}]; Select[Range[lim], PrimeQ[#+Prime[#]]&&PrimeOmega[#+Sp[#]]==2&] (* James C. McMahon, Mar 09 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert Israel, Mar 07 2025
STATUS
approved
