Problem 3314 · Easy

Construct the Minimum Bitwise Array I

Find the smallest x with x OR (x + 1) equal to a prime by reading the lowest unset bit.

Open the interactive visualisation