Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #4 Jan 28 2023 12:12:41
%S 601,1429,81547,248749,27140749,310314157,3566181247
%N a(n) is the least odd prime not in A001359 such that all subsequent composites in the gap up to the next prime have exactly n prime factors, counted with multiplicity.
%o (PARI) a359638(maxp) = {my (k=3, pp=3); forprime (p=5, maxp, my (mi=oo, ma=0); if (p-pp>2, for (j=pp+1, p-1, my(mo=bigomega(j)); if(mo<k, mi=ma=0; break); mi=min(mo,mi); ma=max(mo,ma)); if (mi==k && ma==k, print1(pp,", "); k++)); pp=p)};
%o a359638(10^8)
%Y Cf. A001222, A001359, A062502, A359636, A359637.
%K nonn,more,hard
%O 3,1
%A _Hugo Pfoertner_, Jan 16 2023