PrimeGrid
Please visit donation page to help the project cover running costs for this month

Advanced search

Message boards : Sieving : Numerical equation for GFN sieve speed at specific depth

Author Message
Profile MyrskylyhtyProject donor
Avatar
Send message
Joined: 27 Jan 18
Posts: 116
ID: 972376
Credit: 543,868,707
RAC: 4,177
Discovered 1 mega primeFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (109,329,259)Cullen LLR Gold: Earned 500,000 credits (533,200)ESP LLR Gold: Earned 500,000 credits (808,848)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (472,570)PPS LLR Jade: Earned 10,000,000 credits (15,031,331)PSP LLR Amethyst: Earned 1,000,000 credits (1,379,782)SoB LLR Ruby: Earned 2,000,000 credits (3,570,885)SR5 LLR Amethyst: Earned 1,000,000 credits (1,583,505)SGS LLR Silver: Earned 100,000 credits (128,562)TRP LLR Amethyst: Earned 1,000,000 credits (1,126,846)Woodall LLR Silver: Earned 100,000 credits (380,849)321 Sieve (suspended) Gold: Earned 500,000 credits (573,292)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,069,231)PPS Sieve Emerald: Earned 50,000,000 credits (61,446,588)AP 26/27 Ruby: Earned 2,000,000 credits (2,494,531)GFN Double Silver: Earned 200,000,000 credits (258,863,912)PSA Emerald: Earned 50,000,000 credits (85,075,515)
Message 120919 - Posted: 5 Oct 2018 | 7:32:42 UTC
Last modified: 5 Oct 2018 | 7:35:58 UTC

I had lots of fun procrastinating yesterday, since I decided to analyse the sieve statistics which are available on this page: http://www.primegrid.com/sieving/gfn/

Especially, I wanted to find out what is the "removed from sieve" rate at specific depths. This "removed from sieve" number tells how much candidates under 100M were removed at the sieved range (Under 400M for GFN15-GFN16). I focused on only on GFN17-GFN22

This is what we see when we plot the rates logarithmically:


X axis is the sieve depth (in P, Peta), and Y axis is the removed from sieve value.

You can immediately see that the rate seems to be a logartichmic power law, most clearly between 200P and 20000P. Under this the ranges are relatively large, causing a flat interval because we only get one value for the range sieved. After 20000P there are a lot of small ranges sieved combined with inaccuracy caused by the sieverate only showing the first decimal when going to smaller rates.

So, since the rates seem to be a straight line (i.e. a power law), we can fit a line through the values between 200P and 20000P. From this fit we get an equation for the sieverate for all the 6 project, which are as follows:

GFN17: 10^(5.699895611539641 - 1.047809735406364 * log10(P))
GFN18: 10^(5.770189918802291 - 1.047054122505504 * log10(P))
GFN19: 10^(5.773619230259421 - 1.047460916471634 * log10(P))
GFN20: 10^(5.822252032580029 - 1.048505447896963 * log10(P))
GFN21: 10^(5.857281943722451 - 1.045637924155947 * log10(P))
GFN22: 10^(5.893575606716400 - 1.046124290520683 * log10(P))

So, you can use these numerical equations to estimate the "removed from sieve" rates for a specific depth P.

Using the equation, we can predict the current rates of "removed from sieve", which are as follows (latest real rate of one large sieve interval in parentheses):

GFN17: 1.607641841985315 (1.6)
GFN18: 2.157718107008705 (2.2)
GFN19: 1.307389966120157 (1.3)
GFN20: 2.321153593850324 (2.4)
GFN21: 1.110968091110168 (1.2)
GFN22: 1.024786816287452 (1.0)

This result tells how many are removed from values under b<100M for each P (=Remove density). But if we assume that the removals are evenly distributed (which is roughly the case), you can just multiple the value by the fraction you are interested in. So if you would be interested in ranges 0-1M or 50M-51M, you would multiply this result by 0.01.

You can also predict how many removals sieving a specific range would net. Taking 150050P to 200200P of GFN19 as an example, the equation sums up to 96585 removals in this range. The real number of removals was 97266, so there was a 0.7% difference between the equation and the reality. Similarly we can predict that sieving GFN17 from 175000P to 200000P would net about 37449 removals.

This equation works quite well for approximating rates from 1P onwards, but it doesnt tell how much removals are done at the start of the sieve, since the equation doesnt work for values between 0 and 1P (log10(0)= -Infinity). But it does seem to work after the first sieve range in the stats:

GFN17 predicted removals between 75P to 175000P: 2644000
GFN17 real number of removals 75P to 175000P: 2635698 (actually there's a few ranges still sieving)

GFN20 predicted removals between 50P to 160000P: 3674325
GFN20 real number of removals 50P to 160000P: 3674668 (Thats only a 0,009% error)

I dunno if there already is a some analytical equation for the stuff I've calculated (maybe related to the value of π(x)/(x / log x)? See https://en.wikipedia.org/wiki/Prime_number_theorem ), but its always nice to have numerical verification :)

This method could also work for other types of sieve, if similar stats are available somewhere.

All feedback, corrections and ideas are very welcome :)

JimBProject donor
Honorary cruncher
Send message
Joined: 4 Aug 11
Posts: 920
ID: 107307
Credit: 989,967,975
RAC: 47,664
Discovered 1 mega prime321 LLR Turquoise: Earned 5,000,000 credits (5,009,915)Cullen LLR Turquoise: Earned 5,000,000 credits (5,031,868)ESP LLR Turquoise: Earned 5,000,000 credits (5,064,082)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,038,750)PPS LLR Turquoise: Earned 5,000,000 credits (5,000,461)PSP LLR Turquoise: Earned 5,000,000 credits (7,674,374)SoB LLR Sapphire: Earned 20,000,000 credits (42,604,648)SR5 LLR Jade: Earned 10,000,000 credits (11,829,173)SGS LLR Ruby: Earned 2,000,000 credits (3,161,022)TRP LLR Ruby: Earned 2,000,000 credits (4,768,551)Woodall LLR Turquoise: Earned 5,000,000 credits (5,046,412)321 Sieve (suspended) Jade: Earned 10,000,000 credits (10,057,614)Cullen/Woodall Sieve Jade: Earned 10,000,000 credits (11,209,718)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,005,451)PPS Sieve Emerald: Earned 50,000,000 credits (52,049,707)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Ruby: Earned 2,000,000 credits (2,341,676)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,070,804)AP 26/27 Jade: Earned 10,000,000 credits (10,742,251)GFN Emerald: Earned 50,000,000 credits (50,005,964)WW (retired) Ruby: Earned 2,000,000 credits (2,688,000)PSA Double Gold: Earned 500,000,000 credits (728,567,693)
Message 120920 - Posted: 5 Oct 2018 | 12:10:04 UTC - in response to Message 120919.

After 20000P there are a lot of small ranges sieved combined with inaccuracy caused by the sieverate only showing the first decimal when going to smaller rates.

You've got the exact size of the sieving range and the exact count of factors found and removed. I think you can figure out the rate yourself to as many digits as you'd like.

Profile MyrskylyhtyProject donor
Avatar
Send message
Joined: 27 Jan 18
Posts: 116
ID: 972376
Credit: 543,868,707
RAC: 4,177
Discovered 1 mega primeFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (109,329,259)Cullen LLR Gold: Earned 500,000 credits (533,200)ESP LLR Gold: Earned 500,000 credits (808,848)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (472,570)PPS LLR Jade: Earned 10,000,000 credits (15,031,331)PSP LLR Amethyst: Earned 1,000,000 credits (1,379,782)SoB LLR Ruby: Earned 2,000,000 credits (3,570,885)SR5 LLR Amethyst: Earned 1,000,000 credits (1,583,505)SGS LLR Silver: Earned 100,000 credits (128,562)TRP LLR Amethyst: Earned 1,000,000 credits (1,126,846)Woodall LLR Silver: Earned 100,000 credits (380,849)321 Sieve (suspended) Gold: Earned 500,000 credits (573,292)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,069,231)PPS Sieve Emerald: Earned 50,000,000 credits (61,446,588)AP 26/27 Ruby: Earned 2,000,000 credits (2,494,531)GFN Double Silver: Earned 200,000,000 credits (258,863,912)PSA Emerald: Earned 50,000,000 credits (85,075,515)
Message 120922 - Posted: 5 Oct 2018 | 12:47:49 UTC - in response to Message 120920.
Last modified: 5 Oct 2018 | 12:51:26 UTC

After 20000P there are a lot of small ranges sieved combined with inaccuracy caused by the sieverate only showing the first decimal when going to smaller rates.

You've got the exact size of the sieving range and the exact count of factors found and removed. I think you can figure out the rate yourself to as many digits as you'd like.


Actually I mispoke. I did not use "removed density" in any of my calculations, except when comparing to the equation. Just a brain fart on my part.

The real reason for the higher variance is most likely that when the sieverate goes down, the variance in small sieve ranges (only 1P for example) will be very large. Here's a prime example:


Here is also the image from the first post, since the link seems to have stopped working:

Yves GallotProject donor
Volunteer developer
Project scientist
Send message
Joined: 19 Aug 12
Posts: 843
ID: 164101
Credit: 306,547,469
RAC: 5,425
GFN Double Silver: Earned 200,000,000 credits (306,547,485)
Message 120924 - Posted: 5 Oct 2018 | 15:22:43 UTC

You can find the formula for the expected number of candidates at:
http://www.primegrid.com/forum_thread.php?id=4417&nowrap=true#57237

We have #candidates = e^-gamma * C_n * B_max / log(p_max)
where
C_15 = 5.80266
C_16 = 11.1957
C_17 = 11.0043
C_18 = 13.0078
C_19 = 13.0724
C_20 = 14.5167
C_21 = 16.0846
C_22 = 17.4099

Profile MyrskylyhtyProject donor
Avatar
Send message
Joined: 27 Jan 18
Posts: 116
ID: 972376
Credit: 543,868,707
RAC: 4,177
Discovered 1 mega primeFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de Primes321 LLR Double Bronze: Earned 100,000,000 credits (109,329,259)Cullen LLR Gold: Earned 500,000 credits (533,200)ESP LLR Gold: Earned 500,000 credits (808,848)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (472,570)PPS LLR Jade: Earned 10,000,000 credits (15,031,331)PSP LLR Amethyst: Earned 1,000,000 credits (1,379,782)SoB LLR Ruby: Earned 2,000,000 credits (3,570,885)SR5 LLR Amethyst: Earned 1,000,000 credits (1,583,505)SGS LLR Silver: Earned 100,000 credits (128,562)TRP LLR Amethyst: Earned 1,000,000 credits (1,126,846)Woodall LLR Silver: Earned 100,000 credits (380,849)321 Sieve (suspended) Gold: Earned 500,000 credits (573,292)Generalized Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,069,231)PPS Sieve Emerald: Earned 50,000,000 credits (61,446,588)AP 26/27 Ruby: Earned 2,000,000 credits (2,494,531)GFN Double Silver: Earned 200,000,000 credits (258,863,912)PSA Emerald: Earned 50,000,000 credits (85,075,515)
Message 120928 - Posted: 5 Oct 2018 | 20:34:26 UTC - in response to Message 120924.

You can find the formula for the expected number of candidates at:
http://www.primegrid.com/forum_thread.php?id=4417&nowrap=true#57237

We have #candidates = e^-gamma * C_n * B_max / log(p_max)
where
C_15 = 5.80266
C_16 = 11.1957
C_17 = 11.0043
C_18 = 13.0078
C_19 = 13.0724
C_20 = 14.5167
C_21 = 16.0846
C_22 = 17.4099


Ooh, nice.

So for C_20, B_max=1E8 and we obtain

#candidates = e^(-0.5772156649) * (14.5167*10^8) / log(p_max)
And in log10:
#candidates = 10^8.5490 /log10(p_max)

For GFN20 50P to 160000P this formula gives a difference of

10^8.5490 /log10(50*10^15)-10^8.5490 /log10(160000*10^15)

= 3677706

It is of course also possible obtain the sieverate from this or vice versa. Nice to see that my shenanigans are working.

PS: it seems my image links from dropbox keep dying...

Profile robishProject donor
Volunteer moderator
Volunteer tester
Avatar
Send message
Joined: 7 Jan 12
Posts: 2223
ID: 126266
Credit: 7,966,337,096
RAC: 5,449,477
Discovered the World's First AP27!!!Discovered 12 mega primesDiscovered 1 AP272018 Tour de Primes largest primeFound 4 primes in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 mega prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de PrimesFound 1 mega prime in the 2023 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (10,171,930)Cullen LLR Emerald: Earned 50,000,000 credits (59,837,063)ESP LLR Turquoise: Earned 5,000,000 credits (8,577,288)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,367,575)PPS LLR Emerald: Earned 50,000,000 credits (93,029,138)PSP LLR Turquoise: Earned 5,000,000 credits (9,600,575)SoB LLR Sapphire: Earned 20,000,000 credits (37,523,791)SR5 LLR Sapphire: Earned 20,000,000 credits (41,734,298)SGS LLR Turquoise: Earned 5,000,000 credits (6,716,011)TRP LLR Sapphire: Earned 20,000,000 credits (30,595,532)Woodall LLR Turquoise: Earned 5,000,000 credits (5,062,771)321 Sieve (suspended) Turquoise: Earned 5,000,000 credits (7,141,753)Cullen/Woodall Sieve Turquoise: Earned 5,000,000 credits (7,892,369)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,515,338)PPS Sieve Double Gold: Earned 500,000,000 credits (902,777,397)TRP Sieve (suspended) Silver: Earned 100,000 credits (121,416)AP 26/27 Double Bronze: Earned 100,000,000 credits (132,096,939)GFN Double Turquoise: Earned 5,000,000,000 credits (6,453,823,486)WW (retired) Double Bronze: Earned 100,000,000 credits (133,804,000)
Message 120932 - Posted: 5 Oct 2018 | 23:26:33 UTC - in response to Message 120928.
Last modified: 5 Oct 2018 | 23:29:01 UTC

You can find the formula for the expected number of candidates at:
http://www.primegrid.com/forum_thread.php?id=4417&nowrap=true#57237

We have #candidates = e^-gamma * C_n * B_max / log(p_max)
where
C_15 = 5.80266
C_16 = 11.1957
C_17 = 11.0043
C_18 = 13.0078
C_19 = 13.0724
C_20 = 14.5167
C_21 = 16.0846
C_22 = 17.4099


Ooh, nice.

So for C_20, B_max=1E8 and we obtain

#candidates = e^(-0.5772156649) * (14.5167*10^8) / log(p_max)
And in log10:
#candidates = 10^8.5490 /log10(p_max)

For GFN20 50P to 160000P this formula gives a difference of

10^8.5490 /log10(50*10^15)-10^8.5490 /log10(160000*10^15)

= 3677706

It is of course also possible obtain the sieverate from this or vice versa. Nice to see that my shenanigans are working.

PS: it seems my image links from dropbox keep dying...


Nice. Respect. I'll take your word for it. :) :) :)

Edit: just wondering just how many are running that number thru LLR right now!! :D
____________
My lucky number 10590941048576+1

dukebg
Volunteer tester
Avatar
Send message
Joined: 21 Nov 17
Posts: 242
ID: 950482
Credit: 23,670,125
RAC: 0
Found 1 prime in the 2018 Tour de Primes321 LLR Gold: Earned 500,000 credits (506,942)Cullen LLR Gold: Earned 500,000 credits (500,523)ESP LLR Gold: Earned 500,000 credits (655,642)Generalized Cullen/Woodall LLR Gold: Earned 500,000 credits (539,100)PPS LLR Gold: Earned 500,000 credits (688,232)PSP LLR Gold: Earned 500,000 credits (561,629)SoB LLR Ruby: Earned 2,000,000 credits (3,659,676)SR5 LLR Gold: Earned 500,000 credits (505,810)SGS LLR Gold: Earned 500,000 credits (506,024)TRP LLR Gold: Earned 500,000 credits (963,625)Woodall LLR Gold: Earned 500,000 credits (506,044)321 Sieve (suspended) Gold: Earned 500,000 credits (511,694)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (549,916)PPS Sieve Gold: Earned 500,000 credits (701,168)AP 26/27 Gold: Earned 500,000 credits (525,590)GFN Jade: Earned 10,000,000 credits (10,762,872)WW (retired) Gold: Earned 500,000 credits (500,000)PSA Gold: Earned 500,000 credits (525,639)
Message 120936 - Posted: 6 Oct 2018 | 7:41:20 UTC - in response to Message 120928.

PS: it seems my image links from dropbox keep dying...

Yeah, dropbox was never intended for hotlinking like that. You should probably throw the images on imgur. Or, alternatively funkyimg.com also provides image hosting.

Message boards : Sieving : Numerical equation for GFN sieve speed at specific depth

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 1.97, 2.35, 2.18
Generated 28 Sep 2023 | 7:32:57 UTC