Problem 3315 · Medium

Construct the Minimum Bitwise Array II

Locate the lowest zero bit of each prime and clear the bit just below it to get the smallest valid x.

Open the interactive visualisation