PROJECT EULER · #0734
A Bit of Prime
The logical-OR of two bits is
The bitwise-OR of two positive integers performs a logical-OR operation on each pair of corresponding bits in the binary expansion of its inputs.
For example, the bitwise-OR of
Let
- every
is a prime - the bitwise-OR of the tuple is a prime
For example,
You are given
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.