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 Are they abundant, deficient or perfect?

Japt, 11 bytes Could be 2 bytes shorter if not for a bug in Japt when trying to get the proper divisors of a number. õ üÈgXnXâ x Try it õ üÈgXnXâ x :Implicit input of integer U õ ...

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

Answer
#3: Post edited by user avatar Shaggy‭ · 2021-08-11T10:51:22Z (over 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • õ üÈgXnXâ x
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SD8yGdYbljiIHg&input=MTUKLVE)
  • õ üÈgXnXâ x :Implicit input of integer U
  • õ :Range [0,U]
  • ü :Group & sort
  • È :By passing each X through the following function
  • g : Sign of difference of X and
  • Xn : Subtract X from
  • Xâ : All divisors of X
  • x : Reduced by addition
  • # [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Could be 2 bytes shorter if not for a bug in Japt when trying to get the proper divisors of a number.
  • õ üÈgXnXâ x
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SD8yGdYbljiIHg&input=MTUKLVE)
  • õ üÈgXnXâ x :Implicit input of integer U
  • õ :Range [0,U]
  • ü :Group & sort
  • È :By passing each X through the following function
  • g : Sign of difference of X and
  • Xn : Subtract X from
  • Xâ : All divisors of X
  • x : Reduced by addition
#2: Post edited by user avatar Shaggy‭ · 2021-06-22T16:45:30Z (over 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • +2 bytes to get around an annoying bug introduced in Japt v1.4.6 that broke proper divisors.
  • õ üÈgXnXâ x
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SD8yGdYbljiIHg&input=MTUKLVE)
  • # [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • õ üÈgXnXâ x
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SD8yGdYbljiIHg&input=MTUKLVE)
  • õ üÈgXnXâ x :Implicit input of integer U
  • õ :Range [0,U]
  • ü :Group & sort
  • È :By passing each X through the following function
  • g : Sign of difference of X and
  • Xn : Subtract X from
  • Xâ : All divisors of X
  • x : Reduced by addition
#1: Initial revision by user avatar Shaggy‭ · 2021-06-21T16:26:30Z (over 3 years ago)
# [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

+2 bytes to get around an annoying bug introduced in Japt v1.4.6 that broke proper divisors.

    õ üÈgXnXâ x

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=9SD8yGdYbljiIHg&input=MTUKLVE)