Post Reply 
RPL second impressions (HP 28)
07-01-2018, 08:51 PM
Post: #39
RE: RPL second impressions (HP 28)
(06-30-2018 03:32 PM)Gerson W. Barbosa Wrote:  Yes, for n>3 (if I’ve entered it right). Anyway, 172 seconds (down from 201 seconds).

I've written a new article: Miller-Rabin Primality Test for the HP-48

(06-30-2018 10:20 AM)RMollov Wrote:  I followed advice I found somewhere to create little routines with known input and output, test them and latter combine them to make complex program.

This was used to create the programs:
  • PLUS
  • TIMES
  • POWER
  • COMPOSITE?
  • PRIME?

I recommend to create them in a separate directory.
They aren't optimised for speed but I still assume that it's much faster than the naïve approach.

I'd be interested to know how long it takes on a real HP-28 to verify that 177777773 or 999999999989 are primes.

Cheers
Thomas

PS: For this program n must be bigger than 2. Sad
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RPL second impressions (HP 28) - mdunn - 06-27-2018, 01:19 AM
RE: RPL second impressions (HP 28) - mdunn - 06-27-2018, 01:58 PM
RE: RPL second impressions (HP 28) - mdunn - 06-27-2018, 04:06 PM
RE: RPL second impressions (HP 28) - mdunn - 06-27-2018, 05:11 PM
RE: RPL second impressions (HP 28) - mdunn - 06-27-2018, 07:45 PM
RE: RPL second impressions (HP 28) - mdunn - 06-28-2018, 08:48 PM
RE: RPL second impressions (HP 28) - Thomas Klemm - 07-01-2018 08:51 PM
RE: RPL second impressions (HP 28) - ttw - 07-04-2018, 10:52 PM



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