OFFSET
0,2
LINKS
Rémy Sigrist, C++ program
MATHEMATICA
nn = 2^20; c[_] = False; q[_] = 1;
i = 1; j = 2; c[1] = c[2] = True; u = 3;
{1, 2}~Join~Reap[Monitor[Do[
(k = q[#]; While[c[k #], k++]; k *= #;
While[c[# q[#]], q[#]++]) &[(p = 2;
While[Divisible[i j, p], p = NextPrime[p]]; p)];
If[IntegerQ@ Log2[k], Sow[n]];
Set[{c[k], i, j}, {True, j, k}];
If[k == u, While[c[u], u++]], {n, 3, nn}], n]][[-1, -1]] (* Michael De Vlieger, Mar 18 2023 *)
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 18 2023
EXTENSIONS
a(26)-a(27) from Michael De Vlieger, Mar 19 2023
More terms from Rémy Sigrist, Mar 19 2023
STATUS
approved