mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2014-07-23, 20:10   #133
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

137578 Posts
Default

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
henryzz is online now   Reply With Quote
Old 2014-07-24, 15:06   #134
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

22×52×7 Posts
Default

Quote:
Originally Posted by henryzz View Post
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.
No, the other problem was gone after removing smallPrimes and bound_small_primes from the command line.

I know the system is outdated, but I am not the one to decide about updating it...
Puzzle-Peter is offline   Reply With Quote
Old 2014-07-25, 16:49   #135
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

2BC16 Posts
Default

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?
Puzzle-Peter is offline   Reply With Quote
Old 2014-07-25, 19:28   #136
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

11×557 Posts
Default

Quote:
Originally Posted by Puzzle-Peter View Post
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?
I go away on Sunday for a week. Hopefully after that I will sit down and try and compile it on linux myself and get to the bottom of this.

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
henryzz is online now   Reply With Quote
Old 2014-07-28, 14:39   #137
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

22×52×7 Posts
Default

Quote:
Originally Posted by henryzz View Post
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.
Typing instead of copying did the trick and there is some speedup.

Yes, it's 64-bit.
Puzzle-Peter is offline   Reply With Quote
Old 2014-08-11, 10:37   #138
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

11·557 Posts
Default

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.
henryzz is online now   Reply With Quote
Old 2014-08-12, 10:16   #139
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

10111111011112 Posts
Default

I have also found the issue with the extra inputs I added.
Please change

Code:
scanf("%lld",&bound_small_primes);
and
scanf("%lld",&smallPrimes);
with
Code:
scanf("%d",&bound_small_primes);
and
scanf("%d",&smallPrimes);
I get off with this on windows using both mingw and cygwin. It is quite possibly what is causing you problems though.

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.
Attached Files
File Type: zip polysieve2fixed.zip (14.1 KB, 150 views)

Last fiddled with by henryzz on 2014-08-12 at 10:19
henryzz is online now   Reply With Quote
Old 2014-08-12, 12:17   #140
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

612710 Posts
Default

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
henryzz is online now   Reply With Quote
Old 2014-08-12, 12:44   #141
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

11·557 Posts
Default

Found the gmp bug was in stage 2 as well. Corrected source attached.
Attached Files
File Type: zip polysievefixed2.zip (14.1 KB, 152 views)
henryzz is online now   Reply With Quote
Old 2014-08-12, 14:19   #142
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

22×52×7 Posts
Default

Quote:
Originally Posted by henryzz View Post
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.
That did the trick, thanks!
Puzzle-Peter is offline   Reply With Quote
Old 2015-04-26, 12:14   #143
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

17EF16 Posts
Default

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.
Attached Files
File Type: zip polysieve2.zip (52.3 KB, 165 views)
File Type: zip 10tuples_1e16.zip (38.5 KB, 156 views)
henryzz is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
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

All times are UTC. The time now is 06:44.


Thu Jun 1 06:44:33 UTC 2023 up 287 days, 4:13, 0 users, load averages: 0.93, 1.07, 1.08

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔