mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Prime Gap Searches

Reply
 
Thread Tools
Old 2018-10-30, 12:24   #1
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Suva, Fiji

37728 Posts
Default Primorial offsets

This thread will capture any work anyone is carrying out to generate large primes gaps using Chinese Remainder Theorem (CRT) offsets generated using ATH's prime interval software.

The thinking behind this is that, for any range of integers there are some ranges where there are relatively few members of the range without small prime factors. ATH's software looks, as a start point, to define a range of integers, (called an interval in the software) and then to look at possible modular values for the primes p in a primorial p# to determine those which generate low numbers of members with no factor <=p.

Using CRT, those combinations of modular values can provide an integer, referred to as the offset, which if added or subtracted from the primorial, provides a starting point for an interval with these properties. If we multiply A, an integer, by the primorial, then add or subtract the offset, the properties of the interval demonstrate similar modular properties.

Hence, for any given primorial and chosen offset, it is possible to check many gaps by altering A alone.

The relative values of p that are the most efficient for any interval are yet to be determined. But if p is too small, then the chances of any A providing all members with composites (i.e. maximising the theoretical benefits of the interval) are very low. If p is too high, then the chances of meeting this criterion is quite high, but the absolute size of the members of the interval is also high, lessening the chance that the resulting prime gap is not a record.

To ensure decent coordination, mersenneforum members may reserve an interval size here. Interval sizes can be any value but for convenience sake, the intervals that may be reserved are 50 apart, starting at 1000.

Participating members should report any or all of three things:

1. results in aggregate coming from using the ATH software - for example the numbers of CRT offsets that provide the lowest numbers of composites for a given interval. For example, for the 2000 interval, carrying out a comprehensive test of all possible modular results for primes up to 37, there were 16 combinations providing solutions of 275, 166 providing 276, and 1806 at 277. Where a "solution" is the number of members of the interval with no factors smaller than or equal to 37

2. Any CRT offsets that are useful but which the member has no further interest in - typically this will be any offset that provides a solution within three of the best found. Three pieces of information are required - the interval, p, and the CRT solution.

3. Any records posted to Dr Nicely's site.

4. ATH output files can be posted if the member wants to release a range.

The latest version of ATH's software, written in c is to be found here:

https://www.mersenneforum.org/showpo...&postcount=114

A working piece of software written in perl, developed for another purpose by danaj, is to be found here:

https://www.mersenneforum.org/showpo...&postcount=103

Reservations are in post #2 below
robert44444uk is offline   Reply With Quote
Old 2018-10-30, 12:28   #2
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Suva, Fiji

2·1,021 Posts
Default

This post provides for reservations and results

A = Interval
B = Reserved by
C = Records sent to Dr Nicely

Code:
A	B	        C
		
1000		
1050		
1100		
1150		
1200		
1250		
1300	robert44444uk	1
1350		
1400		
1450		
1500		
1550		
1600		
1650	robert44444uk	
1700		
1750		
1800		
1850		
1900		
1950		
2000	robert44444uk	
2050		
2100		
2150		
2200	robert44444uk	47
2250		
2300		
2350		
2400		
2450		
2500		
2550		
2600		
2650		
2700		
2750		
2800		
2850		
2900		
2950		
3000	robert44444uk	
3050		
3100		
3150		
3200		
3250		
3300		
3350		
3400		
3450		
3500		
3550		
3600		
3650		
3700		
3750		
3800		
3850		
3900		
3950		
4000	robert44444uk	
4050		
4100		
4150		
4200		
4250		
4300		
4350		
4400		
4450		
4500		
4550		
4600		
4650		
4700		
4750		
4800		
4850		
4900		
4950		
5000

Last fiddled with by robert44444uk on 2018-10-31 at 12:08
robert44444uk is offline   Reply With Quote
Old 2018-10-31, 12:02   #3
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Suva, Fiji

37728 Posts
Default

I have run 2000 and 4000 up to 79# and 101# respectively. I had 16 useful offsets that provide 197 positions within the 2000 interval where there are no prime factors smaller than 79, and 165 offsets that provide 405 positions within the 4000 interval where there are no prime factors less than 101.

I realise now that 4000 is probably too large an interval for ATH software to handle - I would need to run up to 137# to be competitive with the records.

Reserving 3000

Last fiddled with by robert44444uk on 2018-10-31 at 12:17
robert44444uk is offline   Reply With Quote
Old 2018-10-31, 16:50   #4
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

27·33 Posts
Default

I can extend it to include higher primes than 101, but the problem is calculating CRT offset. It would exceed 128 bits so I would have to switch to GMP library to calculate it instead of the 128 bit variables I use now, and then you need to compile the GMP library first in order to compile the program

It should be no problem to compile GMP in MSYS2, I do it all the time, and you have all the needed packages installed, but I do not know if you feel it is worth it. The higher you go using only the best few solutions from the lower runs, the higher risk there is that you are no where near the real minimum.
ATH is online now   Reply With Quote
Old 2018-11-01, 08:02   #5
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Suva, Fiji

2·1,021 Posts
Default

Quote:
Originally Posted by ATH View Post
I can extend it to include higher primes than 101, but the problem is calculating CRT offset. It would exceed 128 bits so I would have to switch to GMP library to calculate it instead of the 128 bit variables I use now, and then you need to compile the GMP library first in order to compile the program

It should be no problem to compile GMP in MSYS2, I do it all the time, and you have all the needed packages installed, but I do not know if you feel it is worth it. The higher you go using only the best few solutions from the lower runs, the higher risk there is that you are no where near the real minimum.
It would be worthwhile to do the GMP solution.

I agree that we are nowhere near the real minimum at higher primorials, but then again, I think a few tweaks to the program would allow for pretty decent offsets. For example if programmed to take results that are within 5 of the record at a given level, instead of 3, and then advanced those two primes at a time, then you could quickly get good results. To do that, a tweak would be required to eliminate from the results file those first few solutions that come out that are nowhere near the minimum. You could do that by calculating the theoretical expected result given an input file and only outputting those which are within 5. What do you think?

Took one offset from 2000 interval forward last night and 4 records this morning between 2600 and 2750 :)

Last fiddled with by robert44444uk on 2018-11-01 at 08:04
robert44444uk is offline   Reply With Quote
Old 2018-11-01, 09:03   #6
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Suva, Fiji

204210 Posts
Default

If the CRT calculation is time intensive then maybe the program should only calculate it if the result is within 2-3 of the best solution as it is unlikely that people would look at solutions that are far way from the best.

Last fiddled with by robert44444uk on 2018-11-01 at 09:05
robert44444uk is offline   Reply With Quote
Old 2018-11-22, 08:28   #7
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Suva, Fiji

204210 Posts
Default

I've been concentrating on two prime gap ranges (2000-3000 and 6000-8000) where it is clear there is relatively low hanging fruit in terms of records. It is surprising how weak the range 2000-3000 is. I think this partly due to gapcoin's efforts, which appear as a very clear line starting at 5000 - clearly smaller gaps were not that interesting to them - and Spielaur, who has clearly invested a lot of computer resources in the 1500-2000 range but perhaps less after that.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	213
Size:	72.8 KB
ID:	19307  

Last fiddled with by robert44444uk on 2018-11-22 at 08:33
robert44444uk is offline   Reply With Quote
Old 2018-11-29, 08:40   #8
robert44444uk
 
robert44444uk's Avatar
 
Jun 2003
Suva, Fiji

7FA16 Posts
Default

There are some fairly big gaps in terms of merit coming from this study, these are from the last two weeks and have already been submitted, The format is the simplified version of that used on the Nicely site, i,e. gap, merit, number of decimal digits of the lower of two primes defining the gap, and the detail of that prime, # representing the primorial. The value following the + is the offset developed by ATH's program.

The last gap was the smallest record found.

Code:
2982	32.39	40	3012136000*79#+290310270974475604429744889245-2178
2368	32.26	32	39771103997*59#+171014232051617437041-1652
8646	32.09	118	899511684*269#+5957374301812580490985358710617344145356905967130828134768836382571519478219821452087369852491775393604015-5912
8392	31.23	117	418821175*269#+5896655172957128379466664980541054439832493567791706402422867847469770908884219241972694445732755415692205-2924
8150	30.78	115	8497670*269#+5896655172957128379466664980541054439832493567791706402422867847469770908884219241972694445732755415692205-4438
2800	30.01	41	10443985146*79#+2965490987166802298083559027821-1998
3708	29.82	54	3537439094*109#+243154260282212682243913611242329809258287235-3046
7838	29.34	117	86297041*269#+5957374301812580490985358710617344145356905967130828134768836382571519478219821452087369852491775393604015-2692
7870	29.33	117	284758679*269#+7492355714324105806675448398670447890842962554279407545969581629829188193229173583157646315295447832339675-3506
2178	29.32	33	94343930124*59#+1067076873163923483-832
2732	29.22	41	12351800046*79#+2965490987166802298083559027821-1184
7810	29.19	117	139673464*269#+5240614097214307182652892455738985324935115803017173229924268024043265087223577925588717365155009939172265-2912
7650	29.12	115	1070393*269#+7492355714324105806675448398670447890842962554279407545969581629829188193229173583157646315295447832339675-4364
3920	29.11	59	7708801521*127#+1111132328791289255885652218210449264035303164895-1378
….
2012	27.10	33	90267121489*59#+1067076873163923483-1216

Last fiddled with by robert44444uk on 2018-11-29 at 08:46
robert44444uk is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Largest Known Primorial a1call Miscellaneous Math 11 2016-12-14 21:35
Primorial calculation FreakyPotato Programming 7 2015-02-06 10:33
primorial primes jasong Math 1 2006-08-12 01:38
Primorial puzzle Citrix Puzzles 3 2006-03-07 15:07
Primorial question Dougy Math 2 2005-07-28 13:13

All times are UTC. The time now is 20:50.


Fri Sep 29 20:50:59 UTC 2023 up 16 days, 18:33, 0 users, load averages: 1.08, 1.12, 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.

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