Post Reply 
July 2018 little math problem
07-26-2018, 12:57 AM (This post was last modified: 07-28-2018 04:36 PM by John Keith.)
Post: #5
RE: July 2018 little math problem
(07-25-2018 10:27 PM)Thomas Klemm Wrote:  I just used brute force.

So did I!

Emulated HP 50g with the ListExt Library took 3437 seconds on an ancient WinXP laptop. Same results.

Edit: my original code was atrociously bad. Sad New "brute force" code is shorter and trims execution time down to 1272 seconds.

Code:

Spoiler alert!












\<< 9. LSEQ 9.
  \<< DUP 3.
    \<< + + NSUB 2. MOD NOT DROPN
    \>> DOSUBS LEQ NOT DROPN
  \>> DOPERM
\>>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
July 2018 little math problem - pier4r - 07-25-2018, 08:52 PM
RE: July 2018 little math problem - John Keith - 07-26-2018 12:57 AM
RE: July 2018 little math problem - DavidM - 07-26-2018, 04:03 AM
RE: July 2018 little math problem - DavidM - 07-26-2018, 03:38 PM
RE: July 2018 little math problem - pier4r - 07-26-2018, 12:36 PM
RE: July 2018 little math problem - pier4r - 07-27-2018, 10:03 AM
RE: July 2018 little math problem - DavidM - 07-28-2018, 04:22 PM
RE: July 2018 little math problem - pier4r - 08-01-2018, 02:13 PM



User(s) browsing this thread: 1 Guest(s)