Article describing a new approach to finding prime factors on the "nonprogrammable" HP17bii.
Finding prime factors on a "nonprogrammable" calculator


« Next Oldest  Next Newest »

Finding prime factors on a "nonprogrammable" calculator


« Next Oldest  Next Newest »

▼
09042011, 07:13 PM
Article describing a new approach to finding prime factors on the "nonprogrammable" HP17bii. ▼
09042011, 07:38 PM
Thanks Don! I am continuously learning more about the power of the 17b solver! Cheers, Marwan
09042011, 08:04 PM
Hey, how long does it take to do the same example (6,469,693,230) for each of the factors for which the time in minutes was given for the non optimized version? ▼
09042011, 08:18 PM
Here are the timings, in seconds, for the old version from the Tech. Applications manual, and my version:
09042011, 10:08 PM
After posting the article, I had to make a change. I thought I could adjust variable TF (beginning trial factor) to the current factor and avoid going back to trial factor 3 each time, but I forgot that the Technical Applications manual states on page 25:
Quote: Therefore, the loop to find factors must always start at 3, the beginning value of the loop control value cannot be adjusted when a factor is found. ▼
09052011, 08:25 AM
Actually, the original version does work because what you can't do is modify any of the loop control variables from within the loop in an attempt to end the loop early, because the real loop control values are inaccessible to the user while within the loop. But the modified version of the program is preferable because (a) you don't have to press INIT before each execution, and (b) starting the loop for trial factors at 3 each time does not significantly increase the run time since n (and, therefore, (n)) is adjusted whenever a factor is found.
09052011, 10:11 AM
Thanks for the cool article.. You're amazing with the 17b solver! 