Uiua, 19 17 bytes (SBCS)
Takes argument as integer (decimal), returns lone ones count.
/+↧↧∩¬⊸∩⌟⬚0↻¯∩1⊥₂
Uiua pad this online
Explanation
Rotates binary representation left and right (negate...
posted 6mo ago
by ojdo
· edited
5mo ago
by ojdo
Answer