[HP35s] Program for prime number (Wheel Sieve and Miller-Rabin)
|
04-10-2019, 07:26 AM
(This post was last modified: 04-10-2019 07:32 AM by fred_76.)
Post: #48
|
|||
|
|||
RE: [HP35s] Program for prime number (brut force)
TTW, the "optimized brut force" methods is a wheel (2 3 5 7), optimized to be as fast as possible on the HP35s. It will factorise the number when you repeat the program.
The last version is a Miller-Rabin method I tested last week end. The problem is the calculation of the power A^B mod N which fails on the HP35s when the prime number to test is slightly bigger than 500 000 000 000. I'm using the right-to-left algorithm. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 18 Guest(s)