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 Convert to Hexadecimal

Vyxal 3, 15 13 bytes ⑴②∻↺ƛ②%k^i}⇄∑ Vyxal It Online! ⑴②∻↺ƛ②%k^i}⇄∑ ⑴②∻↺ # accumulating int divide by 16 while unique # i.e. 48821 -> [48821, 3051, 190, 11, 0] ...

posted 9mo ago by arutonee‭  ·  edited 9mo ago by arutonee‭

Answer
#2: Post edited by user avatar arutonee‭ · 2025-12-11T00:36:40Z (9 months ago)
  • # [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), 15 bytes
  • ```
  • ⍰⑴②∻yƛ②%k^i}⇄∑
  • ```
  • [Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAAA1XPOwrCQBAG4KvID3ZLyGbzci_gIUKEYBINajbkIYikE0xjkdoqN7Cws_cgexLZBGHTDMPH_MzMFakoT1ENzgj2SRQnJThAsBVxAg7Zv-XjpWo_yO5z-T5lPywPm6yV95vsehCkQtT_VHqMdhV4EBJkedHUqg-wLkVTLChIABNhSP5iKaG6sFFmQ_ZIjk7OSK5O7hT0dPOmJNPNV2bN51ZT1pytpeakzJ8dSMcvbN-3FIcE56SsMpGDgxnUNBjaH3ypNlpTAQAA)
  • ```
  • ⍰⑴②∻yƛ②%k^i}⇄∑
  • ⍰⑴②∻y # accumulating int divide by 16 while not zero
  • # i.e. 48821 -> [48821, 3051, 190, 11, 0]
  • ƛ } # for each number...
  • ②% # mod 16
  • k^i # index into 012346789ABCDEF
  • ⇄∑ # reverse, then join
  • ```
  • Still new to Vyxal and golfing in general. Any feedback would be appreciated! ^w^
  • # [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), ~~15~~ 13 bytes
  • ```
  • ②∻↺ƛ②%k^i}⇄∑
  • ```
  • [Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAAA1XPTwqCQBQG8KvEB-0GcRz_NRfoEGIgqSWVI6O2CXdRbl238g6tat9B5iShIoy7x4_v4713QyrkJarAGcExieJEggMEexEn4FDdW3W9ar_q8fm9VNevT7usUc-7ajsQpEJUcyM9R4cSPAgJsryoq2EOsJWiLlYUJICJMCSzWINQXdgoi5A9kqOTM5KrkzsVPd28qcl08wezlrnN1DUXa6k5KfMXB9LxC9v3rYFDgmsiy0zk4GAGNQ2G5g9jhbrbTwEAAA)
  • ```
  • ②∻↺ƛ②%k^i}⇄∑
  • ②∻↺ # accumulating int divide by 16 while unique
  • # i.e. 48821 -> [48821, 3051, 190, 11, 0]
  • ƛ } # for each number...
  • ②% # mod 16
  • k^i # index into 012346789ABCDEF
  • ⇄∑ # reverse, then join
  • ```
  • Still new to Vyxal and golfing in general. Any feedback would be appreciated! ^w^
#1: Initial revision by user avatar arutonee‭ · 2025-12-11T00:32:51Z (9 months ago)
# [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), 15 bytes

```
⑴⍰⑴②∻yƛ②%k^i}⇄∑
```

[Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAAA1XPOwrCQBAG4KvID3ZLyGbzci_gIUKEYBINajbkIYikE0xjkdoqN7Cws_cgexLZBGHTDMPH_MzMFakoT1ENzgj2SRQnJThAsBVxAg7Zv-XjpWo_yO5z-T5lPywPm6yV95vsehCkQtT_VHqMdhV4EBJkedHUqg-wLkVTLChIABNhSP5iKaG6sFFmQ_ZIjk7OSK5O7hT0dPOmJNPNV2bN51ZT1pytpeakzJ8dSMcvbN-3FIcE56SsMpGDgxnUNBjaH3ypNlpTAQAA)

```
⑴⍰⑴②∻yƛ②%k^i}⇄∑
⑴⍰⑴②∻y            # accumulating int divide by 16 while not zero
                    # i.e. 48821 -> [48821, 3051, 190, 11, 0]
        ƛ     }     # for each number...
         ②%         # mod 16
           k^i      # index into 012346789ABCDEF
               ⇄∑   # reverse, then join
```

Still new to Vyxal and golfing in general. Any feedback would be appreciated! ^w^