Post Reply 
RPL second impressions (HP 28)
06-30-2018, 03:32 PM (This post was last modified: 06-30-2018 06:14 PM by Gerson W. Barbosa.)
Post: #33
RE: RPL second impressions (HP 28)
(06-30-2018 03:04 PM)Thomas Klemm Wrote:  
(06-30-2018 02:37 PM)Gerson W. Barbosa Wrote:  DOERR doesn’t belong in the 28S catalog.

Would the following work then?

Code:
«
  IF DUP 2 MOD
  THEN → n
    «
      IFERR 3 n √
        FOR d
          n d MOD INV
          DROP
          2
        STEP
      THEN
      ELSE 1
      END
    »
  ELSE NOT
  END
»

Yes, for n>3 (if I’ve entered it right). Anyway, 172 seconds (down from 201 seconds).

PS: My bad. All previous ones don’t work either when n<4. This was used together with a prime factorizer for which this behavior didn’t matter. Will see to that later. Sorry!
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) - Gerson W. Barbosa - 06-30-2018 03:32 PM
RE: RPL second impressions (HP 28) - ttw - 07-04-2018, 10:52 PM



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