Post Reply 
idivis inWP34s
11-29-2015, 12:25 PM (This post was last modified: 11-29-2015 10:19 PM by Didier Lachieze.)
Post: #14
RE: idivis inWP34s
In 15 steps with the test up to n/2:

Code:
01 LBL A    n
02 #000     0     n
03 INC X    i     n
04 cENTER   i     n     i     n
05 RCL+X    2i    n     i     n
06 x<>T     n     n     i     2i
07 X<=? T   n     n     i     2i
08 RTN      n     n
09 RCL Z    i     n     n     i
10 RMDR     r     n     i
11 RCL+Z    i+r   n     i
12 x=? Z
13 R/S      i     n     i
14 x<> Z    i     n
15 BACK 12

Each time the program stops the divisor is in X and the initial number in Y. So you can see it with YDON.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
idivis inWP34s - ggauny@live.fr - 11-27-2015, 07:26 PM
RE: idivis inWP34s - Dieter - 11-27-2015, 08:24 PM
RE: idivis in WP 34S - walter b - 11-27-2015, 08:34 PM
RE: idivis inWP34s - Dieter - 11-27-2015, 08:53 PM
RE: idivis inWP34s - walter b - 11-27-2015, 10:27 PM
RE: idivis inWP34s - Dieter - 11-27-2015, 11:12 PM
RE: idivis inWP34s - Marcus von Cube - 11-28-2015, 11:14 AM
RE: idivis inWP34s - walter b - 11-28-2015, 12:01 PM
RE: idivis inWP34s - Thomas Klemm - 11-28-2015, 12:14 AM
RE: idivis inWP34s - ggauny@live.fr - 11-28-2015, 06:30 AM
RE: idivis inWP34s - Dieter - 11-28-2015, 07:35 PM
RE: idivis inWP34s - ggauny@live.fr - 11-28-2015, 07:28 AM
RE: idivis inWP34s - Thomas Klemm - 11-28-2015, 11:25 AM
RE: idivis inWP34s - Didier Lachieze - 11-29-2015 12:25 PM
RE: idivis inWP34s - ggauny@live.fr - 03-27-2016, 09:34 AM
RE: idivis inWP34s - ggauny@live.fr - 11-29-2015, 12:34 PM
RE: idivis inWP34s - ggauny@live.fr - 11-29-2015, 12:47 PM
RE: idivis inWP34s - Paul Dale - 03-27-2016, 10:26 AM
RE: idivis inWP34s - ggauny@live.fr - 03-27-2016, 10:43 AM
RE: idivis inWP34s - Didier Lachieze - 03-27-2016, 11:17 AM
RE: idivis inWP34s - Paul Dale - 03-27-2016, 11:14 AM
RE: idivis inWP34s - ggauny@live.fr - 03-27-2016, 12:00 PM



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