![]() |
![]() |
#133 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
137578 Posts |
![]()
This is a binary that has the other problem as well? There is something odd about your compiles. I would try to compile a Linux binary for you myself but various things would need to be a later version on your system.
BTW you should be able to use the binary I posted above within wine. Last fiddled with by henryzz on 2014-07-23 at 20:10 |
![]() |
![]() |
![]() |
#134 | |
Jun 2009
22×52×7 Posts |
![]() Quote:
I know the system is outdated, but I am not the one to decide about updating it... |
|
![]() |
![]() |
![]() |
#135 |
Jun 2009
2BC16 Posts |
![]()
Updating do gcc 4.4.7 did not change anything.
When I try to replace the mulmod function with the assembler version, I get a lot of "line xxx: stray \240" messages. What's that? |
![]() |
![]() |
![]() |
#136 | |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
11×557 Posts |
![]() Quote:
For the asm look at the following link. Search for 240 and read from there. I would type it in rather than copy it. http://forums.whirlpool.net.au/archive/435288 Your linux is 64-bit right? 32-bits would be a possible reason for problems. Last fiddled with by henryzz on 2014-07-25 at 19:30 |
|
![]() |
![]() |
![]() |
#137 | |
Jun 2009
22×52×7 Posts |
![]() Quote:
Yes, it's 64-bit. |
|
![]() |
![]() |
![]() |
#138 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
11·557 Posts |
![]()
I think I have fixed the bug in the gmp version. Replace mpz_tdiv_ui with mpz_fdiv_ui in two places. This was meaning I was getting for example 3 mod 7 rather than 4 mod 7. In some places this would be fine but not there apparently.
I would suggest testing this with any new polynomials you try for a while. I think the old code would work with positive coefficients of P(s) and Q(s) but not negative. |
![]() |
![]() |
![]() |
#139 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
10111111011112 Posts |
![]()
I have also found the issue with the extra inputs I added.
Please change Code:
scanf("%lld",&bound_small_primes); and scanf("%lld",&smallPrimes); Code:
scanf("%d",&bound_small_primes); and scanf("%d",&smallPrimes); Apologies for how long it took for me to find this. c isn't a language I am overly fluent in although I am getting better. I have attached fixed source for both gmp and not. Please test before relying on it to work. Last fiddled with by henryzz on 2014-08-12 at 10:19 |
![]() |
![]() |
![]() |
#140 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
612710 Posts |
![]()
Found three triples during testing
2238819531*((15*2^1246-1)^3+2*(15*2^1246-1)^2)-3*(15*2^1246-1)-6 -1/+1/+5 Only +5 proven. 509488329*((177*2^1032-1)^3+2*(177*2^1032-1)^2)-3*(177*2^1032-1)-6 -1/+1/+5 All proven 1914682779*((177*2^1032-1)^3+2*(177*2^1032-1)^2)-3*(177*2^1032-1)-6 -1/+1/+5 All proven I have only tested ~21% of the second file so far so hopefully more will be found. Last fiddled with by henryzz on 2014-08-12 at 12:35 |
![]() |
![]() |
![]() |
#141 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
11·557 Posts |
![]()
Found the gmp bug was in stage 2 as well. Corrected source attached.
|
![]() |
![]() |
![]() |
#142 |
Jun 2009
22×52×7 Posts |
![]() |
![]() |
![]() |
![]() |
#143 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
17EF16 Posts |
![]()
Here is a binary for polysieve2 with all the latest fixes.
I have also included the final prime for each 10_tuple upto 1e16 of the form 0 2 6 12 14 20 24 26 30 32. |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How/Where to get Jens Kruse Andersen's prime constellation sieve? | Stargate38 | And now for something completely different | 2 | 2017-04-28 00:08 |
Efficiently finding a linear progression in data | fivemack | Math | 27 | 2015-12-12 18:42 |
GPU Prime Sieve | tapion64 | GPU Computing | 7 | 2014-04-10 06:15 |
Sieve depth vs. prime probability | Unregistered | Information & Answers | 2 | 2010-05-25 20:51 |
Prime in Riesel Sieve Project | Sloth | Prime Sierpinski Project | 1 | 2006-05-10 02:02 |