![]() |
|
|
#67 |
|
Jul 2003
13×47 Posts |
gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
|
|
|
|
#68 |
|
"Mark"
Apr 2003
Between here and the
11000110100002 Posts |
I might need to make a change to the code. Once you build and run, show the first few lines of pl_MOB.txt so that I know if it output the k correctly.
|
|
|
|
|
|
#69 |
|
Jul 2003
13×47 Posts |
and now with the new source
gcc *.cpp -lstdc++ -O2 -m64 -o srbsieve main.cpp: In function ‘void removeTrivial()’: main.cpp:271: error: expected ‘)’ before ‘PRId64’ main.cpp: In function ‘void removeGFN()’: main.cpp:328: error: expected ‘)’ before ‘PRId64’ main.cpp: In function ‘void removeMOB()’: main.cpp:421: error: expected ‘)’ before ‘PRId64’ main.cpp: In function ‘void processNewpgenFile(uint32_t)’: main.cpp:479: error: expected ‘)’ before ‘PRId64’ main.cpp: In function ‘void doPhase(int)’: main.cpp:517: error: expected ‘)’ before ‘PRId64’ main.cpp: In function ‘void prp_test_ABC_file()’: main.cpp:599: warning: deprecated conversion from string constant to ‘char*’ main.cpp: In function ‘void output_remain(char*)’: main.cpp:708: error: expected ‘)’ before ‘PRId64’ this produced no binary -- and with the modification #define PRId64 "%lld" as a test gcc *.cpp -lstdc++ -O2 -m64 -o srbsieve main.cpp: In function ‘void prp_test_ABC_file()’: main.cpp:599: warning: deprecated conversion from string constant to ‘char*’ srbsieve produced the same output-files as before |
|
|
|
|
|
#70 |
|
"Mark"
Apr 2003
Between here and the
24·397 Posts |
Solving your problem would require someone to use a debugger.
|
|
|
|
|
|
#71 |
|
Jul 2003
61110 Posts |
|
|
|
|
|
|
#72 |
|
"Mark"
Apr 2003
Between here and the
18D016 Posts |
Runs on my Mac without a problem.
|
|
|
|
|
|
#73 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
224208 Posts |
I found a problem for trivial removals for Sierp (c=+1) conjectures.
I debugged on S256 (maxk = 1220), for which I know that four k should survive, of which now only one is standing (k=831). minK, maxK and k and uint64, so if minK = 1, then k will be computed as 0, then k -=1 will make it INT_MAX and no removals will happen. Suggested patch: Code:
***************
*** 252,263 ****
--- 253,268 ----
if (c == -1)
k += 1;
+ else if (k == 0)
+ k = factors[f] - 1;
else
k -= 1;
while (k < minK)
k += factors[f];
// Remove all odd k because k*b^n+c will always be even
for ( ; k <= maxK; k += factors[f])
{
Code:
Status (00:00:00): Started with 1221 terms Status (00:00:00): Removed 608 terms due to trivial factorization |
|
|
|
|
|
#74 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
24·593 Posts |
|
|
|
|
|
|
#75 |
|
Dec 2011
After milion nines:)
101101010002 Posts |
It looks like new srbsieve V5 is coming soon :)
And will remove composite from pl.remain :) |
|
|
|
|
|
#76 |
|
"Mark"
Apr 2003
Between here and the
143208 Posts |
Thanks Serge! Updated source and exe attached. The change for the PRId64 was removed because I can include inttypes.h on non-Windows environments.
Last fiddled with by rogue on 2015-07-22 at 11:33 |
|
|
|
|
|
#77 |
|
Dec 2011
After milion nines:)
144810 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Very Prime Riesel and Sierpinski k | robert44444uk | Open Projects | 587 | 2016-11-13 15:26 |
| Sierpinski/ Riesel bases 6 to 18 | robert44444uk | Conjectures 'R Us | 139 | 2007-12-17 05:17 |
| Sierpinski/Riesel Base 10 | rogue | Conjectures 'R Us | 11 | 2007-12-17 05:08 |
| Sierpinski / Riesel - Base 23 | michaf | Conjectures 'R Us | 2 | 2007-12-17 05:04 |
| Sierpinski / Riesel - Base 22 | michaf | Conjectures 'R Us | 49 | 2007-12-17 05:03 |