Do two numbers contain unique powers of 2
Actually, 2 bytes
&Y
Try it online!
Explanation:
&Y
& bitwise AND
Y boolean negation
x86 Machine Code, 5 bytes
20 C8 0F 95 C0
takes inputs in al
and cl
, and returns output in al
, and is equivalent to:
and al, cl
setnz al
Jelly, 2 bytes
&¬
Try it online!
Explanation:
&¬
& bitwise AND
¬ logical negation