mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Twin Prime Search

Reply
 
Thread Tools
Old 2020-04-09, 11:51   #1
hunson
 
Feb 2020
Germany

23×7 Posts
Default Question about twinsieve

Hey,


I am experimenting a bit with twinsieve.exe.
I tried the following command: twinsieve.exe -k 1 -K 100000000 -b 2 -n 268768 -P 1e14 -W 12
After a while I got this this error message.

Quote:
p=6057931104593, 53.01M p/sec, 99902590 factors found at 3.15 sec per factor, 6.1% done. ETC 2020-04-10 04:47
Fatal Error: Something is wrong. Counted terms (96257) != expected terms (97304)
Can someone please explain to me what I did wrong ? Sieving for -k 1 -K 10000000 -P 1e12 for the same base resulted in no error.


Thanks in advance.
hunson is offline   Reply With Quote
Old 2020-04-09, 12:52   #2
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×3×1,223 Posts
Default

Quote:
Originally Posted by hunson View Post
I am experimenting a bit with twinsieve.exe.
I tried the following command: twinsieve.exe -k 1 -K 100000000 -b 2 -n 268768 -P 1e14 -W 12
After a while I got this this error message.

Can someone please explain to me what I did wrong ? Sieving for -k 1 -K 10000000 -P 1e12 for the same base resulted in no error.
Which version and build date? I will have to take a look.
rogue is offline   Reply With Quote
Old 2020-04-09, 13:41   #3
hunson
 
Feb 2020
Germany

23×7 Posts
Default

Hey,


twinsieve is from the mtsieve-framework version 1.9.5, version 1.2.
Sorry can't find the build date.


My machine:
Win10-64bit
AMD Ryzen 3600 (6 cores, 12 threads)

16 GB RAM




Thanks for helping out.
hunson is offline   Reply With Quote
Old 2020-04-12, 13:55   #4
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

1,699 Posts
Default

Quote:
Originally Posted by hunson View Post
Hey,


twinsieve is from the mtsieve-framework version 1.9.5, version 1.2.
Sorry can't find the build date.


My machine:
Win10-64bit
AMD Ryzen 3600 (6 cores, 12 threads)

16 GB RAM




Thanks for helping out.
Old bug you must use start point that is not even
pepi37 is online now   Reply With Quote
Old 2020-04-12, 15:38   #5
hunson
 
Feb 2020
Germany

5610 Posts
Default

What start point do you mean ? In my case k is not even and works for smaller ranges (1-10.000.000).
hunson is offline   Reply With Quote
Old 2020-04-12, 16:42   #6
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11100101010102 Posts
Default

Quote:
Originally Posted by hunson View Post
twinsieve is from the mtsieve-framework version 1.9.5, version 1.2.
Try 1.9.6 (assuming I posted it). I fixed a patch when using multiple threads. I haven't had time to try to reproduce this.

Note that for twinsieve, it might be difficult to get maximum utilization from multiple threads due to how fast it goes thru a chunk of work.

Last fiddled with by LaurV on 2020-04-13 at 02:50 Reason: fixed quote tag
rogue is offline   Reply With Quote
Old 2020-04-12, 20:37   #7
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·3·1,223 Posts
Default

I ran a test with 1.9.6 framework. No issues. This means that either the bug has been fixed or I don't have the right conditions for reproducing it.
rogue is offline   Reply With Quote
Old 2020-04-12, 22:39   #8
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

169910 Posts
Default

Quote:
Originally Posted by rogue View Post
I ran a test with 1.9.6 framework. No issues. This means that either the bug has been fixed or I don't have the right conditions for reproducing it.

I cannot find 1.9.6


e:\MTSIEVE\mtsieve1957\twin>twinsieve -P10000000000 -W6 -k 6 -K 990000000 -n 50000 -b10 -fN -r -o twinb10.txt
twinsieve v1.2, a program to find factors of k*b^n+1/-1 numbers for fixed b and n and variable k
Sieve started: 1 < p < 1e10 with 890999995 terms (6 < k < 990000000, k*10^50000) (expecting 864178223 factors)
Sieve completed at p=10000000019.
Processor time: 104.38 sec. (3.52 sieving) (1.93 cores)
Fatal Error: Something is wrong. Counted terms (2331345) != expected terms (2349970)
pepi37 is online now   Reply With Quote
Old 2020-04-12, 23:10   #9
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×3×1,223 Posts
Default

I posted 1.9.6 executables on the mtsieve home page. Hopefully that resolves the multi-threading issue.
rogue is offline   Reply With Quote
Old 2020-04-12, 23:22   #10
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

110101000112 Posts
Default

Quote:
Originally Posted by rogue View Post
I posted 1.9.6 executables on the mtsieve home page. Hopefully that resolves the multi-threading issue.
Speed is same...as CPU usage.

Last fiddled with by pepi37 on 2020-04-12 at 23:22
pepi37 is online now   Reply With Quote
Old 2020-04-13, 00:16   #11
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

162528 Posts
Default

Quote:
Originally Posted by pepi37 View Post
Speed is same...as CPU usage.
I would not expect any speed gains. The best way to gain speed with this sieve is to do one of two things:

1) Run multiple copies then use the factor files to eliminate terms.
2) When running one copy, use -w to increase the number of primes per chunk of work.

In any case I'm hoping that the Fatal Error is gone.

Last fiddled with by rogue on 2020-04-13 at 00:17
rogue is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 13:32.


Fri Jul 7 13:32:09 UTC 2023 up 323 days, 11 hrs, 0 users, load averages: 1.13, 1.23, 1.20

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.

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