mersenneforum.org  

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

Reply
 
Thread Tools
Old 2009-08-12, 15:06   #243
axn
 
axn's Avatar
 
Jun 2003

155816 Posts
Default

Isn't Prime Grid already testing Proth primes with k < some value (10000?) In that case, those can be removed from our sieve, no? Same for RPS.

Last fiddled with by axn on 2009-08-12 at 15:06
axn is offline   Reply With Quote
Old 2009-08-12, 17:08   #244
Ken_g6
 
Ken_g6's Avatar
 
Jan 2005
Caught in a sieve

5·79 Posts
Default

Yes, but removing K's, particularly at the low end, does practically nothing to speed up the sieve. It might be worth skipping them in LLR, though.
Ken_g6 is offline   Reply With Quote
Old 2009-08-12, 19:01   #245
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by Ken_g6 View Post
Yes, but removing K's, particularly at the low end, does practically nothing to speed up the sieve. It might be worth skipping them in LLR, though.
Not a speed issue -- just wanted to point out that we'd be doing redundant work.
axn is offline   Reply With Quote
Old 2009-08-12, 20:02   #246
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA

11000100110102 Posts
Default

I'm trying tpsieve for the first time today, and I noticed that it doesn't start outputting factors to the screen until at least a minute or so (approximately, since I wasn't monitoring it too closely) after the program is first started. Is this some sort of pre-calculation it needs to do but isn't being especially talkative about?

Last fiddled with by mdettweiler on 2009-08-12 at 20:03 Reason: slight correction
mdettweiler is offline   Reply With Quote
Old 2009-08-12, 20:09   #247
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
I'm trying tpsieve for the first time today, and I noticed that it doesn't start outputting factors to the screen until at least a minute or so (approximately, since I wasn't monitoring it too closely) after the program is first started. Is this some sort of pre-calculation it needs to do but isn't being especially talkative about?
Yes. For starters, it needs to load up the sieve file and create a 1GB bitmap. Plus, compute the sieve primes (upto sqrt(Pmax)). I don't know if there are any additional computations.
axn is offline   Reply With Quote
Old 2009-08-12, 20:19   #248
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA

2×47×67 Posts
Default

Quote:
Originally Posted by axn View Post
Yes. For starters, it needs to load up the sieve file and create a 1GB bitmap. Plus, compute the sieve primes (upto sqrt(Pmax)). I don't know if there are any additional computations.
Ah, I see. I was wondering what that thing with the sieve primes in tpconfig.txt was all about. BTW, that option came pre-set to 10e6 in the file; I'm pretty sure that is NOT sqrt(pmax). Is this supposed to be a better setting for this?

Also, just curious, how exactly does this sieve primes thing work? Does it pre-calculate all the primes up to sqrt(pmax) to begin with, then check the candidates to see which ones are divided out, then calculate the next batch of primes, check those, etc? Or have I got something mixed up here?
mdettweiler is offline   Reply With Quote
Old 2009-08-12, 20:37   #249
axn
 
axn's Avatar
 
Jun 2003

23×683 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Ah, I see. I was wondering what that thing with the sieve primes in tpconfig.txt was all about. BTW, that option came pre-set to 10e6 in the file; I'm pretty sure that is NOT sqrt(pmax). Is this supposed to be a better setting for this?
I don't know if the program slavishly computes all small primes upto qmax, or intelligently lowers it to sqrt(pmax). Anyway...

Quote:
Originally Posted by mdettweiler View Post
Also, just curious, how exactly does this sieve primes thing work? Does it pre-calculate all the primes up to sqrt(pmax) to begin with, then check the candidates to see which ones are divided out, then calculate the next batch of primes, check those, etc? Or have I got something mixed up here?
The object is to generate all primes in the range pmin <= p < pmax.I assume tpsieve uses a Sieve of Eratosthenes (sp?) to generate those primes on the fly. For that, you'll use all primes < sqrt(pmax). But if sqrt(pmax) is too big, you can use a lower value (which is where qmax would come into picture) -- but downside is that you may test some composites also.

In summary, there are three sieves.

1. Initial sieve to generate all small primes upto sqrt(pmax). This is done only once per run of the program -- in fact it may not even be a sieve, but brute force trial division (I dont know).
2. Use these small primes to do a secondary sieve to generate the actual sieve primes between pmin and pmax [we specify via -p & -P flags]. These will be generated blocks at a time.
3. Each of these p will then be used to sieve out our twin candidates.

Phew!

Last fiddled with by axn on 2009-08-12 at 20:37
axn is offline   Reply With Quote
Old 2009-08-13, 10:15   #250
cipher
 
cipher's Avatar
 
Feb 2007

211 Posts
Default

Reserving 1100G-1300G [480000-485000] cipher

MoooMoo @ what point can we merge ranges [480000-490000] ? or even get a new file which is smaller to handle, according to my calculation upon completion of 1T we would remove almost 30-35% of factors from the original file thats 180MB smaller file than current 570MB.

I recommend we bring both ranges to 3T and than merge them.

thanks
cipher
cipher is offline   Reply With Quote
Old 2009-08-13, 11:17   #251
gribozavr
 
gribozavr's Avatar
 
Mar 2005
Internet; Ukraine, Kiev

11×37 Posts
Default

I have downloaded and verified all submitted factor files.

After sieving to 10G each file with 5000 n's has approximately 39.2 million k's.
Sieving n=480k-485k p=10G-500G has produced 12.3 million factors. That is ~31% of original file.
Sieving n=485k-490k p=10G-200G has produced 9.6 million factors. That is ~24% of original file.
gribozavr is offline   Reply With Quote
Old 2009-08-13, 13:14   #252
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by cipher View Post
I recommend we bring both ranges to 3T and than merge them.
Until a hash-based version of tps is out, this will not be feasible -- the bitmap version for the combined range will take 2GB memory to run, regardless of how many factors you remove.

EDIT:- Additionally, there is no net speed gain in merging two ranges.

Last fiddled with by axn on 2009-08-13 at 13:56
axn is offline   Reply With Quote
Old 2009-08-13, 15:32   #253
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA

142328 Posts
Default

Quote:
Originally Posted by MooooMoo View Post
I haven't done many benchmarks yet, so I'm not sure. But it's almost certainly above 50T (50000G), so we're nowhere near the optimal sieve depth yet.

edit: LLR testing will resume before we get to the optimal sieve depth. If we wait too long, any primes found may be too small to get on the top 5000 list.
50T? Hmm...that sounds a little high. For NPLB, we had an optimal depth of 30T for the range of k=2000-3400, n=50K-650K. Obviously TPS's sieve is a completely different type of range, though I would think that, since it's only for 480K-500K (even for a rather large range of k's), the optimal depth would be somewhat lower than that.

Is there any way to get tpsieve to produce an expected # of factors in a given range, a la sr(x)sieve? If we can get that information, calculating optimal depth is a rather straightforward matter.
mdettweiler is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
S9 and general sieving discussion Lennart Conjectures 'R Us 31 2014-09-14 15:14
Sieving discussion thread philmoore Five or Bust - The Dual Sierpinski Problem 66 2010-02-10 14:34
Combined sieving discussion ltd Prime Sierpinski Project 76 2008-07-25 11:44
Sieving Discussion ltd Prime Sierpinski Project 26 2005-11-01 07:45
Sieving Discussion R.D. Silverman Factoring 7 2005-09-30 12:57

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


Fri Jul 7 13:33:05 UTC 2023 up 323 days, 11:01, 0 users, load averages: 1.19, 1.22, 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.

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