RPL exercise - Last Digits of Primes (HP 49G, G+, 50g)
|
06-01-2019, 03:17 PM
Post: #11
|
|||
|
|||
RE: RPL exercise - Last Digits of Primes (HP 49G, G+, 50g)
(06-01-2019 08:51 AM)Carsen Wrote: Hi Everyone. I am glad you had fun. That was the idea, hence an 'exercise', not a 'challenge'. Just two remarks: 1) The STR-> before should be an OBJ-> (just a manual listing mistake); 2) You can omit the optional case clause, DUP == THEN { 0 0 0 0 } END (see grsbanks's comment below in this thread). Thus your byte count will be under 200 and you can save about three seconds in Exact Mode. I had considered testing this CASE structure, but I didn't. Thanks for doing it. I would get about the same running times, but at least I could have tried Approximate Mode, which is not possible in my programs. Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)