OFFSET
1,2
COMMENTS
Sum of any two terms is in A014612. Is the sequence infinite?
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Module[{k = a[n - 1] + 1}, While[! AllTrue[Array[a, n - 1], PrimeOmega[# + k] == 3 &], k++]; k]; Array[a, 12] (* Amiram Eldar, Sep 29 2021 *)
PROG
(PARI) first(n)=my(v=vector(n), t); v[1]=1; for(k=2, n, t=v[k-1]; while(t++, for(i=1, k-1, if(bigomega(v[i]+t)!=3, next(2))); break); v[k]=t); v; \\ Charles R Greathouse IV, Oct 03 2021
(PARI) nxt(v, n=v[#v]+1)=my(b=min(97, n-1)); while(1, for(i=1, #v, my(f=factor(v[i]+n, b), e=f[, 2]); if(vecsum(e)>3 || vecsum(e)==3 && !isprime(f[#e, 1]), n++; next(2))); for(i=1, #v, if(bigomega(v[i]+n)!=3, n++; next(2))); return(n)); \\ Charles R Greathouse IV, Oct 03 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Sep 26 2021
STATUS
approved