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

71%
+3 −0
Challenges The holeyest base

Japt -h, 19 18 bytes Gõ ñ@ìX xg#‘5#}4s3 Try it Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U G :16 õ :Range [1,G] ñ :Sor...

posted 2y ago by Shaggy‭  ·  edited 2y ago by Shaggy‭

Answer
#5: Post edited by user avatar Shaggy‭ · 2022-10-02T20:48:36Z (about 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>19</s> 18 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Gõ ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=R/Ug8UDsWCB4ZyORNSN9NHMz&input=NjM)
  • Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U
  • G :16
  • õ :Range [1,G]
  • ñ :Sort by
  • @ :Passing each X through the following function
  • ìX : Convert U to base X digit array
  • x : Reduce by addition after
  • g : Indexing into
  • #‘5#}4 : 14551254
  • s3 : Converted to base-3 string
  • :Implicit output of last element
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>19</s> 18 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Gõ ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=R/Ug8UDsWCB4ZyORNSN9NHMz&input=NjM)
  • Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U
  • G :16
  • õ :Range [1,G]
  • ñ :Sort by
  • @ :Passing each X through the following function
  • ìX : Convert U to base X digit array
  • x : Reduce by addition after
  • g : Indexing into
  • #‘5#}4 : 14551254
  • s3 : Converted to base-3 string
  • :Implicit output of last element
  • "But, Shaggy, why ... no, _how_ is that `14551254`?"
  • "Glad you asked! See this tip [here](https://codegolf.stackexchange.com/a/121263/58974)"
#4: Post edited by user avatar Shaggy‭ · 2022-09-30T16:09:05Z (about 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>19</s> 18 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Gõ ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=RvXEIPFA7FggeGcjkTUjfTRzMw&input=NjM)
  • Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U
  • G :16
  • õ :Range [1,G]
  • ñ :Sort by
  • @ :Passing each X through the following function
  • ìX : Convert U to base X digit array
  • x : Reduce by addition after
  • g : Indexing into
  • #‘5#}4 : 14551254
  • s3 : Converted to base-3 string
  • :Implicit output of last element
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>19</s> 18 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Gõ ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=R/Ug8UDsWCB4ZyORNSN9NHMz&input=NjM)
  • Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U
  • G :16
  • õ :Range [1,G]
  • ñ :Sort by
  • @ :Passing each X through the following function
  • ìX : Convert U to base X digit array
  • x : Reduce by addition after
  • g : Indexing into
  • #‘5#}4 : 14551254
  • s3 : Converted to base-3 string
  • :Implicit output of last element
#3: Post edited by user avatar Shaggy‭ · 2022-09-30T14:18:19Z (about 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>19</s> 18 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Gõ ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=RvXEIPFA7FggeGcjkTUjfTRzMw&input=NjM)
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>19</s> 18 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Gõ ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=RvXEIPFA7FggeGcjkTUjfTRzMw&input=NjM)
  • Gõ ñ@ìX xg#‘5#}4s3 :Implicit input of integer U
  • G :16
  • õ :Range [1,G]
  • ñ :Sort by
  • @ :Passing each X through the following function
  • ìX : Convert U to base X digit array
  • x : Reduce by addition after
  • g : Indexing into
  • #‘5#}4 : 14551254
  • s3 : Converted to base-3 string
  • :Implicit output of last element
#2: Post edited by user avatar Shaggy‭ · 2022-09-30T14:13:52Z (about 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 19 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • FõÄ ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=RvXEIPFA7FggeGcjkTUjfTRzMw&input=NjM)
  • # [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), <s>19</s> 18 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • ñ@ìX xg#‘5#}4s3
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=RvXEIPFA7FggeGcjkTUjfTRzMw&input=NjM)
#1: Initial revision by user avatar Shaggy‭ · 2022-09-30T14:10:33Z (about 2 years ago)
# [Japt](https://github.com/ETHproductions/japt) [`-h`](https://codegolf.meta.stackexchange.com/a/14339/), 19 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

    FõÄ ñ@ìX xg#‘5#}4s3

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LWg&code=RvXEIPFA7FggeGcjkTUjfTRzMw&input=NjM)