Post Reply 
I was bored and found a HP-27S
06-10-2014, 10:38 PM
Post: #16
RE: I was bored and found a HP-27S
(06-10-2014 08:46 PM)Dave Britten Wrote:  They even managed to port my favorite prime factoring algorithm

Dave, here is a simple prime factoring program for the 17b/17bii solver that I wrote a few years ago. It is a lot faster than the one in the manual because it terminates the loop early by doing a divide by 0. Enter the number to factor and press N, then press FACT. If it beeps and says "Solution Not Found", it has found a factor; RCL FACT to see it. Then press FACT again to see the next (and subsequent) factors. If it doesn't beep, it has found the final factor.

It's not elegant, but it works!

Code:

IF(MOD(N:2)=0:L(FACT:2)+L(N:N/2)/0:SIGMA(I:3:SQRT(N):2:IF(MOD(N:I)=0:L(FACT:I)+L(N:N/I)/0:0))+N)-FACT
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
I was bored and found a HP-27S - jebem - 06-09-2014, 10:38 PM
RE: I was bored and found a HP-27S - jebem - 06-10-2014, 09:35 AM
RE: I was bored and found a HP-27S - Don Shepherd - 06-10-2014 10:38 PM
RE: I was bored and found a HP-27S - jebem - 06-25-2014, 06:49 PM
RE: I was bored and found a HP-27S - jebem - 06-26-2014, 01:44 PM
RE: I was bored and found a HP-27S - jebem - 06-26-2014, 01:40 PM
RE: I was bored and found a HP-27S - jebem - 06-26-2014, 03:57 PM
RE: I was bored and found a HP-27S - jebem - 06-27-2014, 01:15 PM
RE: I was bored and found a HP-27S - jebem - 06-27-2014, 08:50 PM
RE: I was bored and found a HP-27S - HP67 - 06-27-2014, 02:56 PM
RE: I was bored and found a HP-27S - HP67 - 06-27-2014, 03:28 PM
RE: I was bored and found a HP-27S - jebem - 06-27-2014, 10:18 PM
RE: I was bored and found a HP-27S - jebem - 06-27-2014, 10:58 PM
RE: I was bored and found a HP-27S - jebem - 06-28-2014, 08:02 AM
RE: I was bored and found a HP-27S - jebem - 06-27-2014, 10:46 PM
RE: I was bored and found a HP-27S - jebem - 06-28-2014, 07:55 AM
RE: I was bored and found a HP-27S - jebem - 06-27-2014, 10:56 PM
RE: I was bored and found a HP-27S - jebem - 06-27-2014, 11:05 PM
RE: I was bored and found a HP-27S - jebem - 06-28-2014, 04:44 PM
RE: I was bored and found a HP-27S - jebem - 06-28-2014, 05:37 PM
HP-27S that does not turn on - franz.b - 11-06-2020, 08:24 PM
RE: I was bored and found a HP-27S - jebem - 11-09-2020, 07:14 AM



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