[HP35s] Program for prime number (Wheel Sieve and Miller-Rabin)
|
02-14-2019, 07:51 PM
Post: #16
|
|||
|
|||
RE: [HP35s] Program for prime number (brut force)
(02-14-2019 06:26 PM)Albert Chan Wrote: What happens if you do not check each remainder goes to zero, but collect it all per turns ? You are right, this would simplify the code. But unfortunately, at least on the HP35s, the instruction x=0? (about 3 ms) is 4x faster than STO*Var (about 12 ms). Thus you will end-up with a run time increased by a factor of about 4. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 16 Guest(s)