![]() |
![]() |
#23 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
2×29×127 Posts |
![]() |
![]() |
![]() |
![]() |
#24 | |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
2·29·127 Posts |
![]() Quote:
Presumably this has the same 32-bit exponent limit as mfaktc. If you have any plans to take that higher, a 67-bit limit would be useful for a couple of exponents I've been trying to factor lately. (I'm currently using Mfactor for those. Mmff is not suitable for them since they are not double-mersennes.) Since there would be a performance hit, it's probably best to keep the 32-bit-exponent version available. Last fiddled with by kriesel on 2020-04-15 at 09:17 |
|
![]() |
![]() |
![]() |
#25 |
Mar 2011
Germany
6116 Posts |
![]()
Good news, finally I was able to implement negative bases.
Also the problem with the 1660 card should be fixed now. I attached the source code and 64 bit binaries for Linux and Windows. As usual test first if all tests are running successfully with Code:
./gr-mfaktc.exe -st Code:
Selftest statistics number of tests 49113 successfull tests 49113 kernel | success | fail -------------------+---------+------- UNKNOWN kernel | 0 | 0 64bit_mul32 | 8631 | 0 75bit_mul32 | 9710 | 0 95bit_mul32 | 9915 | 0 64bit_mul32_gs | 6188 | 0 75bit_mul32_gs | 7246 | 0 95bit_mul32_gs | 7423 | 0 selftest PASSED! Code:
./gr-mfaktc.exe -tf -97 4956227 1 64 Code:
Factor=4763923,60,61 Factor=base=-127,1055167,1,64 Factor=base=-97,1055167,1,64 Factor=base=17,1055167,1,64 Factor=base=10,1055167,1,64 Factor=4763923,60,61 Some additional notes: I wrote a Mathematica notebook that allows to calculate the allowed remainders for any base. The script's source code can be extracted from the file allowed-remainders-data.c I give some results here: Code:
base -> {{<remainder list>}, <modulo value>} ----------------------------------------------------------------- -13 -> {{1, 7, 9, 11, 15, 17, 19, 25, 29, 31, 47, 49}, 52} -12 -> {{1, 7, 13, 19}, 24}} -11 -> {{1, 3, 5, 9, 15, 23, 25, 27, 31, 37}, 44} -10 -> {{1, 7, 9, 11, 13, 19, 23, 37}, 40} -2 -> {{1, 3}, 8} 2 -> {{1, 7}, 8} 10 -> {{1, 3, 9, 13, 27, 31, 37, 39}, 40} 11 -> {{1, 5, 7, 9, 19, 25, 35, 37, 39, 43}, 44} 12 -> {{1, 11, 13, 23}, 24} 13 -> {{1, 3, 4, 9, 10, 12}, 13} Have fun. Cheers, Danilo Last fiddled with by MrRepunit on 2020-09-20 at 20:15 |
![]() |
![]() |
![]() |
#26 |
Nov 2020
Russia
216 Posts |
![]()
I found some problem.
In the result gr-mfaktc 0.21 I get factor. When I run mprime 30.3 I don't get factor. Sample: gr-mfacktc 0.21 Code:
R[10]211584161 has a factor: 11109304798164647139787 [TF:73:74:mfaktc 0.21 75bit_mul32_gs] found 1 factor for R[10]211584161 from 2^73 to 2^74 [mfaktc 0.21 75bit_mul32_gs] Code:
M211584161 no factor from 2^73 to 2^74, Wh8: bla, AID: bla Error in the gr-mfaktc or maybe the settings need to be changed? |
![]() |
![]() |
![]() |
#27 | |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
32×1,117 Posts |
![]() Quote:
R10211584161 is a shorthand for (10^211584161-1)/9. That's 211584161 "ones" in decimal notation. M211584161 is a shorthand for 2^211584161-1. That's 211584161 "ones" in binary notation (and a much smaller number). Two different numbers. One has a factor and the other does not. You can test, using Pari/GP. F=11109304798164647139787; print(Mod(10,F)^211584161-1) Download gp, start gp, run these two lines. The result indeed confirms that it = 0, ergo F does divide R10211584161 |
|
![]() |
![]() |
![]() |
#28 |
Nov 2020
Russia
216 Posts |
![]()
Thank you, it worked
I changed the line with the assignment in worktodo.txt to Code:
Factor=bla,base=2,211584161,71,72 |
![]() |
![]() |
![]() |
#29 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
32×1,117 Posts |
![]()
Then you turned it into mfaktc (which is its parent program).
Trouble is that more universal programs need extra registers to hold variables (that are in the stricter program a constant), and the class selection/enumeration code is probably more involved than in its parent mfaktc. Are the registers going to be used better or worse when you are compiling a program that does more? Have you run timing tests? So it is unclear if this is simply slower than to run strict mfaktc (where base=2 as a constant throughout the code, by definition). |
![]() |
![]() |
![]() |
#30 | |
Bemusing Prompter
"Danny"
Dec 2002
California
5×499 Posts |
![]() Quote:
Last fiddled with by ixfd64 on 2020-11-11 at 22:02 |
|
![]() |
![]() |
![]() |
#31 | |
"James Heinrich"
May 2004
ex-Northern Ontario
61·67 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#32 | |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
2·29·127 Posts |
![]() Quote:
Last fiddled with by kriesel on 2020-11-11 at 19:36 |
|
![]() |
![]() |
![]() |
#33 | |
"James Heinrich"
May 2004
ex-Northern Ontario
61·67 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
mfaktc: a CUDA program for Mersenne prefactoring | TheJudger | GPU Computing | 3622 | 2023-01-25 16:41 |
mfakto: an OpenCL program for Mersenne prefactoring | Bdot | GPU Computing | 1719 | 2023-01-16 15:51 |
The P-1 factoring CUDA program | firejuggler | GPU Computing | 753 | 2020-12-12 18:07 |
World's second-dumbest CUDA program | fivemack | Programming | 112 | 2015-02-12 22:51 |
World's dumbest CUDA program? | xilman | Programming | 1 | 2009-11-16 10:26 |