Hello all,
I always get a ton of good information and programs from the forums. Anyway, here's a present of dubious(?) value to everyone. This is what happens when you have too much time on your hands during the holidays! :) Please check it out:
Check to see if the number you have entered is prime. Program gives a result of "1" if prime, or "0" if not. If the number is not prime, hitting RCL 3 will give you the square root if the number has one, or will give you the lowest factor of the number. It isn't optimized or anything, just plain jane. The original number can be recalled by hitting RCL 1.
Legend:
/ = divide
SQRT = The square root
00-
01- STO 1
02- SQRT
03- STO 3
04- FRAC
05- X=0
06- GTO 33
07- RCL 1
08- 2
09- STO 3
10- /
11- FRAC
12- X=0
13- GTO 33
14- 3
15- STO 3
16- RCL 1
17- SQRT
18- INTG
19- STO 2
20- RCL 1
21- RCL 3
22- /
23- FRAC
24- X=0
25- GTO 33
26- RCL 3
27- RCL 2
28- X<=Y
29- GTO 36
30- 2
31- STO +3
32- GTO 20
33- 0
34- ENTER
35- GTO 00
36- 1
37- ENTER
38- GTO 00
Enter positive integers only. Enjoy!
Tony, AB9IO