(32SII/DM32) Prime Factorization (edit)
|
11-17-2023, 03:41 AM
(This post was last modified: 11-18-2023 03:36 PM by Eddie W. Shore.)
Post: #1
|
|||
|
|||
(32SII/DM32) Prime Factorization (edit)
Instructions:
1. Enter a positive integer on the X stack. 2. Run the program (XEQ P) and a prime factor is displayed. Press [ R/S ] to continue. At this point the calculator is set to FIX 0 mode. Repeat step 2. 3. The program ends when the integer reappears. The calculator is reset to FIX 4. 3 labels are needed. Note: One instruction has been corrected, thank you, Thomas Klemm! Code: P01 LBL P Labels used: P, B, A Variables: F (factor), A, B Examples 26: 2, 13, 26 (26 = 2 × 13) 89: 89 (89 is prime) 175: 5, 5, 7, 175 (175 = 5^2 × 7) 1020: 2, 2, 3, 5, 17, 1020 (1020 = 2^2 × 3 × 5 × 17) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(32SII/DM32) Prime Factorization (edit) - Eddie W. Shore - 11-17-2023 03:41 AM
RE: (32SII/DM32) Prime Factorization - Namir - 11-17-2023, 04:18 AM
RE: (32SII/DM32) Prime Factorization (edit) - Eddie W. Shore - 11-18-2023, 03:39 PM
RE: (32SII/DM32) Prime Factorization - DA74254 - 11-17-2023, 08:50 AM
RE: (32SII/DM32) Prime Factorization - Thomas Klemm - 11-17-2023, 08:18 PM
RE: (32SII/DM32) Prime Factorization (edit) - Eddie W. Shore - 11-18-2023, 03:36 PM
|
User(s) browsing this thread: 4 Guest(s)