![]() |
![]() |
#23 | |
Jun 2003
Oxford, UK
22×13×37 Posts |
![]() Quote:
https://sourceforge.net/projects/openpfgw/ What command do I do to get openPFGW for Linux into my Ubuntu library? Last fiddled with by robert44444uk on 2020-12-13 at 23:11 |
|
![]() |
![]() |
![]() |
#24 | |
"Mark"
Apr 2003
Between here and the
22·7·223 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#25 | |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2·2,909 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#26 |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2×2,909 Posts |
![]()
I am getting an error when I try to get the plots:
Code:
david@DESKTOP-BVMNJE2:/mnt/e/Mersenne/primegaps/sethsieve/build/prime-gap$ ./gap_test.py --unknown-filename 9973_208110_1_1999999_s100000_l1000000M.txt --no-one-side-skip --num-plots 3 --prp-top-percent 100 K = 14260 bits, 4293 digits, log(K) = 9883.75 Min Gap ~= 118604 (for merit > 12.0) Loaded 80726 records (112558 to 345816) from 'gaps.db' Min merit for record 11.39, gapsize for likely record 15.22 150448 Loading unknowns from '9973_208110_1_1999999_s100000_l1000000M.txt' Found 4584 (1.0%) results expect 878 left, 0.878% of SL=100000 after 1000000M 0.010% of 4293 digit numbers are prime 0.498% of tests should be prime (49.2x speedup) ~2x200.9 = 401.7 PRP tests per m sieve_length=100000 is insufficient ~1.26% of time Starting m(456682) 1 to 1999999 Testing 456682 m where prob(record) >= 0 Thread 0 started ^CReceived first Ctrl+C | Waiting for current work to finish No more work pushing NONE Waiting on 1 of 1 results Thread 0 stopped 61 879 <- unknowns -> 887 2160 <- gap -> 42062 tests 1 (67.9 secs/test, 64.6 secs/test) 68, 65 secs unknowns 1766 (avg: 1766.00), 99.12% composite 49.77% <- % -> 50.23% prp tests 259 (avg: 129.50/side, 259.00/m) (3.816 tests/sec) sum(prob_minmerit): 1.7154e-06, 0.00218/day found: 0 sum(prob_record): 0.010897, 13.9/day found: 0 merit 4.472 (at m=61) Joining work_q (should be instant) Joining 1 processes Done! experimental_gap size mismatch 456682 787 R^2 for expected gap: 0.001, gap = 156430.5 + -0.765 * expected |P(gap)| = 6996, Sum(P(gap)) = 450916.2 |P(gap)| = 48724, Sum(P(gap)) = 36292.3 gap > min_merit(12) | sum(P) = 3923.5862 gap = record | sum(P) = 4997.0288 Traceback (most recent call last): File "./gap_test.py", line 520, in <module> prime_gap_test(args) File "./gap_test.py", line 506, in prime_gap_test gap_test_plotting.plot_stuff( File "/mnt/e/Mersenne/primegaps/sethsieve/build/prime-gap/gap_test_plotting.py", line 439, in plot_stuff stats_plots( File "/mnt/e/Mersenne/primegaps/sethsieve/build/prime-gap/gap_test_plotting.py", line 312, in stats_plots verify_no_trend(valid_m, d) File "/mnt/e/Mersenne/primegaps/sethsieve/build/prime-gap/gap_test_plotting.py", line 43, in verify_no_trend trend, _ = np.polyfit(m_values, d, 1) File "<__array_function__ internals>", line 5, in polyfit File "/home/david/.local/lib/python3.8/site-packages/numpy/lib/polynomial.py", line 603, in polyfit raise TypeError("expected x and y to have same length") TypeError: expected x and y to have same length edit: What happens if you get a record or first occurrence gap below min_merit? Last fiddled with by henryzz on 2020-12-14 at 15:03 |
![]() |
![]() |
![]() |
#27 | |
"Seth"
Apr 2019
3·83 Posts |
![]() Quote:
All records are always printed even if they are below min_merit. |
|
![]() |
![]() |
![]() |
#28 | ||
"Seth"
Apr 2019
111110012 Posts |
![]() Quote:
Quote:
This is fixed (you'll need to git pull). Plotting works with zero, some, or all of the experimental data. If you want to not test any gaps you can pass --prp-top-percent=0 Last fiddled with by SethTro on 2020-12-15 at 01:01 |
||
![]() |
![]() |
![]() |
#29 |
Jun 2003
Oxford, UK
22×13×37 Posts |
![]()
Hi Seth
Hmm, something went wrong today - I seem to have lost a key file. Can you tell me what I must do to repair or start afresh? gap stats went well, as did the combined sieve Code:
./gap_test.py --unknown-filename 1789_46410_5000000_5000000_s20000_l1000M.txt --prp-top-percent 5 --min-merit 18 --threads 16 K = 2511 bits, 756 digits, log(K) = 1740.29 Min Gap ~= 31602 (for merit > 18.0) Traceback (most recent call last): File "./gap_test.py", line 528, in <module> prime_gap_test(args) File "./gap_test.py", line 395, in prime_gap_test record_gaps = gap_test_stats.load_records(conn, M_log) File "/home/robert4444uk/prime-gap/gap_test_stats.py", line 103, in load_records rv = conn.execute( sqlite3.OperationalError: no such table: gaps |
![]() |
![]() |
![]() |
#30 | |
"Seth"
Apr 2019
3×83 Posts |
![]() Quote:
you lost gaps.db maybe from following my update instruction maybe some other way. Code:
sqlite3 gaps.db < prime-gap-list/allgaps.sql |
|
![]() |
![]() |
![]() |
#31 |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2×2,909 Posts |
![]()
I am getting:
Code:
File "./gap_test.py", line 528, in <module> prime_gap_test(args) File "./gap_test.py", line 464, in prime_gap_test data_db, misc_db = gap_test_stats.load_stats(conn, args) File "/mnt/e/Mersenne/primegaps/sethsieve/build/prime-gap/gap_test_stats.py", line 146, in load_stats (data.expected_prev, data.expected_next, data.expected_gap, ValueError: not enough values to unpack (expected 7, got 0) It is possible to run more tests for old work. edit: solved by adding --save-unknowns to the stats call Last fiddled with by henryzz on 2020-12-15 at 20:20 |
![]() |
![]() |
![]() |
#32 |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2·2,909 Posts |
![]()
It would be useful if it was possible to specify decimal prp-top-percent.
|
![]() |
![]() |
![]() |
#33 | |
"Seth"
Apr 2019
3×83 Posts |
![]() Quote:
https://github.com/sethtroisi/prime-..._stats.py#L392 and https://github.com/sethtroisi/prime-...ap_test.py#L71 (This section assumes you don't have a lot of git experience in case this is your first time using got) You don't have permission to write to my git project so you can clone my project under your name and save (and propose) your local changes from there. Github makes this easy they have a button called "fork" in the upper right when your signed in (you'll need to create an account if you don't have one). After you fork the project on github you need to tell your computer where it is and what to call it we do this with `git remote add` if you find the clone command under your forked project (under the green code button) you can copy that url (something like https://github.com/<your username>/prime-gap.git) and run `git remote add <name like "personal"> <url ending in .git>` After you make the change you commit it with `git commit -am "allow decimal percent to test"` then push it to your new project with `git push -u <name from earlier e.g. "personal"> main` I'm writing this from mobile and giving up here but can help more if these steps don't work (and implicitly assumed that you want to make and contribute this change) If you don't want to do this you can always attach the result of a `git diff` or `git mail` but setting up git makes it easier for others to see and coordinate. |
|
![]() |
![]() |
![]() |
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 |