mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Reply
 
Thread Tools
Old 2015-07-21, 18:09   #67
lalera
 
lalera's Avatar
 
Jul 2003

13×47 Posts
Default

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.
lalera is offline   Reply With Quote
Old 2015-07-21, 18:21   #68
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11000110100002 Posts
Default

Quote:
Originally Posted by lalera View Post
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.
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.
rogue is offline   Reply With Quote
Old 2015-07-21, 18:41   #69
lalera
 
lalera's Avatar
 
Jul 2003

13×47 Posts
Default

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
lalera is offline   Reply With Quote
Old 2015-07-21, 19:51   #70
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·397 Posts
Default

Solving your problem would require someone to use a debugger.
rogue is offline   Reply With Quote
Old 2015-07-21, 20:07   #71
lalera
 
lalera's Avatar
 
Jul 2003

61110 Posts
Default

Quote:
Originally Posted by rogue View Post
Solving your problem would require someone to use a debugger.
i can not do this - unfortunately
lalera is offline   Reply With Quote
Old 2015-07-22, 01:16   #72
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

18D016 Posts
Default

Runs on my Mac without a problem.
rogue is offline   Reply With Quote
Old 2015-07-22, 02:36   #73
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

224208 Posts
Default

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])
        {
Result:
Code:
Status (00:00:00): Started with 1221 terms
Status (00:00:00): Removed 608 terms due to trivial factorization
Batalov is offline   Reply With Quote
Old 2015-07-22, 02:44   #74
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

24·593 Posts
Default

Quote:
Originally Posted by rogue View Post
You can delete the #include <windows.h> line. Replace with this:

#define PRId64 "%lld"
#define PRId64 "lld"

"%" is already provided in every printf statement.

That solves the compilation problem on linux.
Batalov is offline   Reply With Quote
Old 2015-07-22, 07:40   #75
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

101101010002 Posts
Default

It looks like new srbsieve V5 is coming soon :)
And will remove composite from pl.remain :)
pepi37 is offline   Reply With Quote
Old 2015-07-22, 11:22   #76
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

143208 Posts
Default

Thanks Serge! Updated source and exe attached. The change for the PRId64 was removed because I can include inttypes.h on non-Windows environments.
Attached Files
File Type: 7z srbsieve.7z (32.3 KB, 117 views)

Last fiddled with by rogue on 2015-07-22 at 11:33
rogue is offline   Reply With Quote
Old 2015-07-22, 14:38   #77
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

144810 Posts
Default

for great tool Rogue!
pepi37 is offline   Reply With Quote
Reply

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

All times are UTC. The time now is 09:16.


Tue Jul 27 09:16:01 UTC 2021 up 4 days, 3:45, 0 users, load averages: 1.54, 1.69, 1.62

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.