![]() |
|
|
#1 |
|
May 2003
23×31 Posts |
I had a quick question about how the trial-factoring in Prime95 works. Does the program trial-divide by prime numbers in order or does it try them randomly until one works? :?
|
|
|
|
|
|
#2 |
|
May 2003
25×3 Posts |
Trial factoring tries all possible dividers up to a certain limit, which depends on the exponent you are testing (or which you set yourself with the FactorOverride option).
However, not all prime numbers are tried, because there is a theorem that if a number divides a Mersenne number, it MUST be of the form 2*k*p+1 where p is the exponent of the number you are testing. So it only tries to devide the Mersenne by these kind of numbers. How the program tries to divide it exactly, I don't know myself. I don't know the exact algorithm for it, but I know that it is waaaay faster than just trying to numerically divide it. Axel Fox. |
|
|
|
|
|
#3 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
769210 Posts |
Prime95 trial-factoring is orderly. It's designed to ensure that once it reports that there's no factor up to 2^m, it really does mean that no potential factor below 2^m divides the Mnumber it tested, so any factor of that Mnumber must be greater than 2^m.
|
|
|
|
|
|
#4 | ||
|
"Sander"
Oct 2002
52.345322,5.52471
4A516 Posts |
Quote:
The program does however try all numbers below a bit length before moving to the next though. Below is a message from George to the mersenne mailing list on 08 may 1996 Quote:
|
||
|
|
|
|
|
#5 | |
|
Aug 2002
Richland, WA
22·3·11 Posts |
Quote:
|
|
|
|
|
|
|
#6 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
Quote:
And if no factor is found, then the progress as measured at the standard powers-of-2 breakpoints is sequential. |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Automatic fetch of Trial Factoring work for GPU mfakt* | LaurV | GPU to 72 | 81 | 2020-12-02 05:17 |
| Simple Script to get Trial Factoring Work | jfamestad | PrimeNet | 3 | 2016-11-06 20:32 |
| Why trial factoring work chopped into chunks? | lidocorc | PrimeNet | 4 | 2008-11-06 18:48 |
| over trial factoring | JFB | Software | 23 | 2004-08-22 05:37 |
| How does the trial factoring work with 15K*2^n-1 | jocelynl | 15k Search | 0 | 2003-07-11 14:23 |