Post Reply 
(32SII/DM32) Prime Factorization (edit)
11-17-2023, 08:18 PM
Post: #4
RE: (32SII/DM32) Prime Factorization
(11-17-2023 08:50 AM)DA74254 Wrote:  Either I've done something completely wrong or there is a bug in the program.

(11-17-2023 03:41 AM)Eddie W. Shore Wrote:  
Code:
B03  RCL÷ B

That should rather be:
Code:
B03  RCL÷ F

Here's a program for the HP-42S:
Code:
00 { 42-Byte Prgm }
01▸LBL "P"
02 STO 00
03 STO 01
04 2
05 STO 02
06▸LBL B
07 RCL 00
08 RCL÷ 02
09 ENTER
10 IP
11 X=Y?
12 GTO A
13 1
14 STO+ 02
15 GTO B
16▸LBL A
17 STO 00
18 RCL 02
19 STOP
20 RCL 00
21 1
22 X≠Y?
23 GTO B
24 RCL 01
25 END

I made a few minor adjustments but there's still room for improvements.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (32SII/DM32) Prime Factorization - Thomas Klemm - 11-17-2023 08:18 PM



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