RPL exercise - Last Digits of Primes (HP 49G, G+, 50g)
|
06-01-2019, 03:41 PM
Post: #13
|
|||
|
|||
RE: RPL exercise - Last Digits of Primes (HP 49G, G+, 50g)
Thank you all for your participation and for the interesting and efficient solutions.
Here are my rather convoluted ones: Base 10: Code:
I had tried 10 MOD instead of \->STR DUP SIZE DUP SUB OBJ\-> above, but akwardly the running time would increase from 155.4 s to 1677.1 s, for 1000 primes. Base 8: Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)