Prime number finder HP11C?
|
06-28-2016, 02:22 AM
Post: #29
|
|||
|
|||
RE: Prime number finder HP11C?
(06-27-2016 10:17 PM)Marcio Wrote:(06-17-2016 09:41 AM)Gerson W. Barbosa Wrote: The HP-15C version might be made even shorter by using Valentin's technique. I learned the MATRIX 1 trick in line 2 from him, BTW. Márcio, If you see the reminders on the back of the HP-15C you'll notice the MATRIX 1 operation stores 1 into registers 0 and 1. Its original purpose is to initialize the matrix indices, but you can use it to save two steps (1 STO 0 STO 1 <--> MATRIX 1), in case you need to do this in a program. Even if you need to set only one register to one this may save you one step (considering another register is used anyway). In this case the byte count might be the same, I fear. Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)