[HP35s] Program for prime number (Wheel Sieve and Miller-Rabin)
|
02-13-2019, 10:09 AM
Post: #7
|
|||
|
|||
RE: Hello and program for prime number (HP35s)
Albert
Good try. I tried, replacing the lines : Code: CLx by (after initialisation of I=(N^0.5-7)%30+1) : Code:
But it is slower... In fact, the first code takes about 25 ms to execute while the second code takes about 35 ms. The HP35s is fast when it calculates x², but slow to execute DSE. For 999 999 937, the DSE modified code takes 4'57" compared to 4'36". |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 18 Guest(s)