[HP35s] Program for prime number (Wheel Sieve and Miller-Rabin)
|
02-13-2019, 11:53 AM
Post: #8
|
|||
|
|||
RE: [HP35s] Hello and program for prime number
You may want to have a look at (35S) Number Theory Library.
There are the following functions: Quote:PRIME? 148 Though I haven't tried but if PRIME? uses RABIN? (which I assume implements the Miller-Rabin Primality Test) it might be considerably faster for bigger numbers. I've implemented this for the HP-48GX: (48G) Miller-Rabin Primality Test This article gives a bit more details: Miller-Rabin Primality Test for the HP-48 Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 10 Guest(s)