Post Reply 
Prime Factors
05-19-2015, 02:58 AM
Post: #3
RE: Prime Factors
(05-18-2015 08:31 PM)Thomas Klemm Wrote:  
(05-18-2015 06:10 PM)Dave Britten Wrote:  Note this is a pretty straight port, and hasn't been fancied up with any 41-specific capabilities (yet).

You might have a look at a program for the HP-42s which uses the same idea.

Cheers
Thomas

Thanks Thomas. Clever use of t-copy there. I see a couple things that could be issues for a 41 port: the use of recall arithmetic, as mentioned in that thread, AIP, which requires the appropriate module or alternative code, and the alpha register being limited to 24 characters. I don't recall the 42S alpha limit, but I think I remember it being larger.

I changed my version a bit to display multiplicity of factors as they're found (3^2, 5^3, etc.) and also replaced the / FRC bits with MOD, which appears to be about 20% faster. I'll probably post the updated code tomorrow.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


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)