HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
|
08-30-2017, 02:08 PM
(This post was last modified: 08-30-2017 02:11 PM by Claudio L..)
Post: #25
|
|||
|
|||
RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
(08-30-2017 01:02 PM)Gerald H Wrote: Slightly shorter version of Werner's programme: Even shorter when you use IDIV2: Code: « "" SWAP At only 65.5 bytes, this one gets the title for short code. This one clocked at 24.2 sec for 100 runs on a 50g, so it doesn't quite beat Werner. On newRPL, interestingly, it causes a 19x slowdown because of invoking the decompiler. Removing OBJ-> makes it only 2.2x slower than plain Werner and 2.9x slower than mine. **EDIT**: This algorithm only runs in exact mode, BTW. In approx. mode the trailing dot in the reals messes up the string and OBJ-> gives an error. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)