![]() |
![]() |
#12 | |
"Seth"
Apr 2019
24810 Posts |
![]() Quote:
Code:
ABC $a*1009#/3018+$b // {number_primes,$a,1} 1 192 1 324 1 512 1 648 1 768 1 1296 1 2066 1 2126 |
|
![]() |
![]() |
![]() |
#13 | |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2·2,909 Posts |
![]() Quote:
Are all the options available fully implemented? The calculate_expected_gaps call on line 831 of gap_test crashes so I can't set options that satisfy this if statement: if args.stats and (args.save_logs or args.num_plots): I haven't produced any graphs yet. Can the script cope with being run twice in the same directory on the same database(maybe different scripts)? I am not aware of a way to not need a dummy variable for // {number_primes,$a,1}. If file size is an issue you could use the ABCD format but I would imagine the file format you posted is easier. |
|
![]() |
![]() |
![]() |
#14 | ||
"Seth"
Apr 2019
F816 Posts |
![]() Quote:
Hum, I'm running this on a Ubuntu 18.10 instance (with sqlite updated) using Python3.7, do you remember what broke python3.7? Quote:
I'm not sure I've ever tested this but it should work (there might be DB contention but only if both are trying to submit lots of records per second). You can also use multiple databases by passing `--search-db` to the various tools / scripts. |
||
![]() |
![]() |
![]() |
#15 | |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2×2,909 Posts |
![]() Quote:
Yes it is WSL I am using. Generally, I find it pretty much behaves like Linux(it is apart from system calls). |
|
![]() |
![]() |
![]() |
#16 | |
"Seth"
Apr 2019
23·31 Posts |
![]() Quote:
I've updated the README and I'm wrote a fix for `gap_test.py --stats` but tomorrow I'm going to remove `--stats` because it doesn't serve any use (it's not needed for plotting and only serves to validate / double check gap_stats). It's late so I may have made some errors but I tested, briefly, before I pushed. |
|
![]() |
![]() |
![]() |
#17 | |
"Seth"
Apr 2019
23·31 Posts |
![]() Quote:
Code:
sudo apt install build-essential |
|
![]() |
![]() |
![]() |
#18 |
Jun 2003
Oxford, UK
22·13·37 Posts |
![]()
Thanks Seth - I had actually figured that out in the end. There were several more issues on the way after that but it was a question that I was running everything from scratch and I needed to run some commands to install the missing bits.
The one that impact Ubuntu 20 is that pip does not work. Instead you need pip3. That worked, and now I am away and exploring :) UPDATE: All working like a dream. Now I can try to repeat everything on my main machine (I installed this on an old machine just in case). As you are continuing to adapt the programme, and as gaps change, what are the scripts to run that can get this from you and the gap site? Last fiddled with by robert44444uk on 2020-12-13 at 11:06 |
![]() |
![]() |
![]() |
#19 |
Jun 2003
Oxford, UK
22·13·37 Posts |
![]()
Trying to understand the input variables. In post #1 you write
Code:
sieve to sieve m * P#/d for m from a to a+b up to limit ./combined_sieve --save-unknowns -p <P> -d <d> --mstart <a> --minc <b> --sieve-length <X> --max-prime <limit> # e.g. 907#/53970 sieving 10,000 in both directions up to 1B ./combined_sieve --save-unknowns -p 907 -d 53970 --mstart 1 --minc 10000 --sieve-length 15000 --max-prime 1000 You then write "sieving 10,000 in both directions" but sieve-length is 15000. Does this actually mean the program will sieve either side of the primorial centre point by 15000 or 10000 or 7500 or 5000? max-prime - does this mean that the sieve will sieve up to a maximum prime? I take it that 1000 = 1000M, i.e. it will sieve up to the primes that is just lower than 1e9 |
![]() |
![]() |
![]() |
#20 | ||
"Seth"
Apr 2019
23·31 Posts |
![]() Quote:
If you want to update the newest prime gap records do something like this (it would be easy to add to update_gap_repo.sh, then set executable with `chmod a+x update_gap_repo.sh` and run with `./update_gap_repo.sh` Code:
cd prime-gap-list/ # This checks github for the last version and downloads it, this can fail if you've made local changes to allgaps.sql but you probably haven't (if it fails look up some git basics like "git status" and "git reset") git pull # Delete and recreate gaps.db rm gaps.db sqlite3 gaps.db < allgaps.sql # Go back to the previous directory cd - Code:
# This checks github for the last version and downloads it # This can fail if I've done bad things or if you've made local changes # if it fails look up some git basics like "git status" and "git reset origin/main" git pull # delete and recompile binaries make clean make all Quote:
You are correct `sieve-length` is the distance on either side of the center point that is sieved. I wish I had a better name for this than `sieve-length` maybe `half-sieve-interval`. I'm very open to suggestions. Yes, this is the correct interpretation Last fiddled with by SethTro on 2020-12-13 at 12:46 |
||
![]() |
![]() |
![]() |
#21 |
Jun 2003
Oxford, UK
22·13·37 Posts |
![]()
Thanks Seth
Installed on my big machine - effortless this time. The last few questions for today question: Code:
$ ./gap_test.py --unknown-filename 907_53970_1_10000_s15000_l1000M.txt --min-merit 15 --prp-top-percent 40 --threads 4 ... 13818 15.9853 3937 * 907#/53970 -6686 to +7132 21164 24.4724 5801 * 907#/53970 -11364 to +9800 RECORD! I want to be able to access this file and play with it in MS Excel, which is in another operating system. How do I transfer the output items to a txt file in an MS Directory? What command do I need to upload any records to the database? Or should I continue to use the primegaps/cloudy.go upload page? Last fiddled with by robert44444uk on 2020-12-13 at 12:36 |
![]() |
![]() |
![]() |
#22 | |
"Seth"
Apr 2019
23·31 Posts |
![]() Quote:
the script `./misc/record_check.py` will retrieve all the record gaps. If you want a raw list you can start with something like `sqlite3 prime-gap-search.db -header -csv 'SELECT * FROM result WHERE merit > 20'` If you pass --save-logs (requires a git pull as I just fixed this code) all screen output gets saved in the log directory under a sensible filename (which also gets logged) There's no automated upload script, it's a good idea but I don't have the energy right now (and I kinda like the frontend warts and all) Last fiddled with by SethTro on 2020-12-13 at 13:23 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UPS /combined UPS and PS for P95 computer | Christenson | Hardware | 12 | 2011-10-27 03:41 |
Combined sieving discussion | ltd | Prime Sierpinski Project | 76 | 2008-07-25 11:44 |
Combined Sieve Guide Discussion | Joe O | Prime Sierpinski Project | 35 | 2006-09-01 13:44 |
Combined Sieving? | jaat | Sierpinski/Riesel Base 5 | 5 | 2006-04-18 02:26 |
Sieve discussion Meaning of first/second pass, combined | Citrix | Prime Sierpinski Project | 14 | 2005-12-31 19:39 |