Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 952 characters in body
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Rollback to Revision 20
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
  • Fixed for 16-bit overflow (+5 bytes). Thanks @deadcode for the suggestions!
  • Simplified return logic (-3 bytes). Thx to help from @deadcode once again.
  • Use TEST instead of CMP (-1 byte). Thx to @l4m2, and make sure to upvote @l4m2's shorter x86 answer!
  • Thx to @deadcode for the TIO link
  • Fixed for 16-bit overflow (+5 bytes). Thanks @deadcode for the suggestions!
  • Simplified return logic (-3 bytes). Thx to help from @deadcode once again.
  • Use TEST instead of CMP (-1 byte). Thx to @l4m2!
  • Thx to @deadcode for the TIO link
  • Fixed for 16-bit overflow (+5 bytes). Thanks @deadcode for the suggestions!
  • Simplified return logic (-3 bytes). Thx to help from @deadcode once again.
  • Use TEST instead of CMP (-1 byte). Thx to @l4m2, and make sure to upvote @l4m2's shorter x86 answer!
  • Thx to @deadcode for the TIO link
actually, need to verify that answer first before linking...
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
  • Fixed for 16-bit overflow (+5 bytes). Thanks @deadcode for the suggestions!
  • Simplified return logic (-3 bytes). Thx to help from @deadcode once again.
  • Use TEST instead of CMP (-1 byte). Thx to @l4m2, and make sure to upvote @l4m2's shorter x86 answer!
  • Thx to @deadcode for the TIO link
  • Fixed for 16-bit overflow (+5 bytes). Thanks @deadcode for the suggestions!
  • Simplified return logic (-3 bytes). Thx to help from @deadcode once again.
  • Use TEST instead of CMP (-1 byte). Thx to @l4m2, and make sure to upvote @l4m2's shorter x86 answer!
  • Thx to @deadcode for the TIO link
  • Fixed for 16-bit overflow (+5 bytes). Thanks @deadcode for the suggestions!
  • Simplified return logic (-3 bytes). Thx to help from @deadcode once again.
  • Use TEST instead of CMP (-1 byte). Thx to @l4m2!
  • Thx to @deadcode for the TIO link
shout to l4m2's answer
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Modernize, callable function, Add TIO link from @deadcode
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Commonmark migration
Source Link
Loading
clarify comment about divisor
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
-1 byte, use TEST instead of CMP thx to @l4m2
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
better jump location
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
more appropriate location for POP AX instruction
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
arrows looked too much like equality signs...
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
no need for SI as counter
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
no need for SI as counter
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
-3 bytes, clean up and simplify return logic thx to @deadcode
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
edited body
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
added 3 characters in body
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
correct inline documentation; deleted 8 characters in body
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Bounty Awarded with 100 reputation awarded by Deadcode
Add tests for previous error points
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Corrected byte count
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Add CF check for correct output up to N <= 65,535
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Add CF check for correct output up to N <= 65,535
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Use jump below instead of jump less for unsigned comparison
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading
Source Link
640KB
  • 12.4k
  • 2
  • 38
  • 61
Loading

AltStyle によって変換されたページ (->オリジナル) /