Prime Factors
|
05-18-2015, 06:10 PM
(This post was last modified: 05-19-2015 01:13 PM by Dave Britten.)
Post: #1
|
|||
|
|||
Prime Factors
In an attempt to rival Doom for the largest number of systems to which it's been ported, here's the usual HP 67 "mod 30" prime factors program for the 41C/CV/CX.
Enter a positive integer, and XEQ FCTR. Press R/S to view each factor. Zero will be displayed when there are no more factors. Note this is a pretty straight port, and hasn't been fancied up with any 41-specific capabilities (yet). EDIT: Here's a slightly improved version with a couple optimizations, and multiplicity display for factors (e.g. 3^2, 7^3, etc). Code: 01 LBL FCTR |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Prime Factors - Dave Britten - 05-18-2015 06:10 PM
RE: Prime Factors - Thomas Klemm - 05-18-2015, 08:31 PM
RE: Prime Factors - Dave Britten - 05-19-2015, 02:58 AM
|
User(s) browsing this thread: 1 Guest(s)