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

80%
+6 −0
Challenges Partial Sums of Harmonic Series

Japt, 11 10 bytes >0©ÒßUÉ/°T Try it >0©ÒßUÉ/°T :Implicit input of integer U >0 :Greater than 0? © :Logical AND with Ò :Negate the bitwise ...

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

Answer
#4: Post edited by user avatar Shaggy‭ · 2021-08-05T14:06:49Z (over 2 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), <s>11</s> 10 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • >0©ÒßUÉ/°T
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=PjCp0t9VyS%2bwVA&input=NA)
  • # [Japt](https://github.com/ETHproductions/japt), <s>11</s> 10 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • >0©ÒßUÉ/°T
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=PjCp0t9VyS%2bwVA&input=NA)
  • >0©ÒßUÉ/°T :Implicit input of integer U
  • >0 :Greater than 0?
  • © :Logical AND with
  • Ò :Negate the bitwise NOT of (i.e., increment)
  • ß :Recursive call with argument
  • UÉ/ : U minus 1 divided by ...
  • °T : T (initially 0) prefix incremented
#3: Post edited by user avatar Shaggy‭ · 2021-06-25T15:23:14Z (almost 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • @§XõpJ x}a1
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdY9XBKIHh9YTE&input=NA)
  • @§XõpJ x}a1 :Implicit input of integer U
  • @ :Function taking an integer X as argument
  • § : Is U <= ...
  • Xõ : Range [1,X]
  • p : Raise each to the power of
  • J : -1
  • x : Reduce by addition
  • } :End function
  • a1 :Get the first integer >=1 that returns true
  • # [Japt](https://github.com/ETHproductions/japt), <s>11</s> 10 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • >0©ÒßUÉ/°T
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=PjCp0t9VyS%2bwVA&input=NA)
#2: Post edited by user avatar Shaggy‭ · 2021-06-22T16:43:06Z (almost 3 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • @§XõpJ x}aÄ
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdY9XBKIHh9YcQ&input=NA)
  • # [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • @§XõpJ x}a1
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdY9XBKIHh9YTE&input=NA)
  • @§XõpJ x}a1 :Implicit input of integer U
  • @ :Function taking an integer X as argument
  • § : Is U <= ...
  • Xõ : Range [1,X]
  • p : Raise each to the power of
  • J : -1
  • x : Reduce by addition
  • } :End function
  • a1 :Get the first integer >=1 that returns true
#1: Initial revision by user avatar Shaggy‭ · 2020-11-17T15:36:26Z (over 3 years ago)
# [Japt](https://github.com/ETHproductions/japt), 11 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

    @§XõpJ x}aÄ

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