Post Reply 
RPL exercise - Last Digits of Primes (HP 49G, G+, 50g)
06-01-2019, 04:43 AM (This post was last modified: 06-01-2019 04:47 AM by Gerson W. Barbosa.)
Post: #3
RE: RPL exercise - Last Digits of Primes (HP 49G, G+, 50g)
(06-01-2019 04:13 AM)Valentin Albillo Wrote:  .
Hi, Gerson,

(06-01-2019 03:07 AM)Gerson W. Barbosa Wrote:  Currently less than 160 seconds for 1000 primes (both programs, real HP 50g), but probably still not optimal.

Really ? 160 sec. (almost 3 min.) for just 1000 primes ? Only 6 primes/sec ?

Seems I had the wrong idea about these calcs' speed ...

Yes, 155.4 seconds (base 10), or 155.4 ms per prime, but that’s not linear. For 100 primes it takes 7.38 seconds or about 13.5 primes per second. Anyway, that’s an improvement over my first attempt. Hopefully there’s still a better way.

For these primes calculations, perhaps the Prime is more suitable, but I am not willing to try it.

Best regards,

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: RPL exercise - Last Digits of Primes (HP 49G, G+, 50g) - Gerson W. Barbosa - 06-01-2019 04:43 AM



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