Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

66%
+2 −0
Challenges Lone ​​​​​​ones

Vyxal, 4 bytes Ġċ†∑ Try it Online! Takes input as a string of 32 bits. Explained Ġċ†∑­⁡​‎‎⁡⁠⁡‏‏​⁡⁠⁡‌⁢​‎‎⁡⁠⁢‏‏​⁡⁠⁡‌⁣​‎‎⁡⁠⁣‏‏​⁡⁠⁡‌⁤​‎‎⁡⁠⁤‏‏​⁡⁠⁡‌­ Ġ # ‎⁡Group the input by ...

posted 7mo ago by lyxal‭

Answer
#1: Initial revision by user avatar lyxal‭ · 2026-02-28T11:48:53Z (7 months ago)
# [Vyxal](https://github.com/Vyxal/Vyxal/tree/version-2), 4 bytes 

```
Ġċ†∑
```

[Try it Online!](https://vyxal.pythonanywhere.com/?v=2&c=1#WyJBIiwiIiwixKDEi+KAoOKIkSIsIiIsIlwiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBcIlxuXCIxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMVwiXG5cIjEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwXCJcblwiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDFcIlxuXCIxMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMVwiXG5cIjAwMDAwMDAwMDAwMDAwMDExMDAwMDAwMDAwMDAwMDAwXCJcblwiMDAwMDAwMDAwMDAxMDEwMDAwMDAwMDAwMDAwMDAwMDBcIlxuXCIxMTExMTExMTExMTExMDEwMTExMTExMTExMTExMTExMVwiXG5cIjExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEwXCJcblwiMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTFcIlxuXCIxMDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMVwiXG5cIjExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTAxXCJcblwiMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTBcIlxuXCIwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMVwiXG5cIjAxMTAwMTEwMDExMDAxMTAwMTEwMDExMDAxMTAwMTEwXCIiXQ==)

Takes input as a string of 32 bits.

## Explained

```
Ġċ†∑­⁡​‎‎⁡⁠⁡‏‏​⁡⁠⁡‌⁢​‎‎⁡⁠⁢‏‏​⁡⁠⁡‌⁣​‎‎⁡⁠⁣‏‏​⁡⁠⁡‌⁤​‎‎⁡⁠⁤‏‏​⁡⁠⁡‌­
Ġ     # ‎⁡Group the input by consecutive values. Basically, split the input on runs.
 ċ    # ‎⁢Push whether each run != 1. Basically, an inverted check for "is this run a '1' or multiple 1s/0s".
  †   # ‎⁣Logical not each comparison, because the above check was inverted.
   ∑  # ‎⁤Summate the list, returning the count of truthy comparisons.
💎
```
Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).