mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Wagstaff PRP Search

Reply
 
Thread Tools
Old 2020-05-27, 01:50   #364
axn
 
axn's Avatar
 
Jun 2003

3×1,531 Posts
Default

I use the N = f notation because factordb supports it. Are any of the other notations supported by factordb (for bulk submitting results)?
axn is offline   Reply With Quote
Old 2020-05-27, 05:24   #365
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×3×5×107 Posts
Default

Quote:
Originally Posted by axn View Post
I use the N = f notation because factordb supports it. Are any of the other notations supported by factordb (for bulk submitting results)?
Fair enough. It is just a polymorphed symbol.
paulunderwood is online now   Reply With Quote
Old 2020-05-27, 07:52   #366
axn
 
axn's Avatar
 
Jun 2003

3×1,531 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Fair enough. It is just a polymorphed symbol.
grep has results.txt | cut -d' ' -f3,7 | sort | uniq | sed -e's/ / = /'

This is my secret sauce. If you can give me one for the f | N, I can run both, use one for factordb and post the other here.
axn is offline   Reply With Quote
Old 2020-05-27, 08:14   #367
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2·3·5·107 Posts
Default

Quote:
Originally Posted by axn View Post
grep has results.txt | cut -d' ' -f3,7 | sort | uniq | sed -e's/ / = /'

This is my secret sauce. If you can give me one for the f | N, I can run both, use one for factordb and post the other here.
grep has results.txt | cut -d' ' -f7,3 | sort | uniq | sed -e's/ / \| /'


Should do it
paulunderwood is online now   Reply With Quote
Old 2020-05-27, 08:39   #368
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

8016 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
-f7,3
Unfortunately, that does not invert the order in a line. I'd propose:
Code:
grep has results.txt | cut -d' ' -f3,7 | sort | uniq | sed 's/^\([^ ][^ ]*\) \([^ ][^ ]*\)/\2 | \1/'
(I'd be using the "c" tag but that gave weird formatting, how can I escape square brackets?)

The result seems a bit chaotic, because the first column has no constant size. One could solve that using e.g. xargs and printf.
kruoli is offline   Reply With Quote
Old 2020-05-27, 09:07   #369
axn
 
axn's Avatar
 
Jun 2003

3·1,531 Posts
Default

Quote:
Originally Posted by kruoli View Post
Unfortunately, that does not invert the order in a line. I'd propose:
Code:
grep has results.txt | cut -d' ' -f3,7 | sort | uniq | sed 's/^\([^ ][^ ]*\) \([^ ][^ ]*\)/\2 | \1/'
(I'd be using the "c" tag but that gave weird formatting, how can I escape square brackets?)

The result seems a bit chaotic, because the first column has no constant size. One could solve that using e.g. xargs and printf.
This works! I managed to simplify a bit (got rid of beginning of line ^, and aa* became a+, [^ ] replaced with just .):
Code:
grep has results.txt | cut -d' ' -f3,7 | sort | uniq | sed 's/\(.\+\) \(.\+\)/\2 | \1/'

Last fiddled with by axn on 2020-05-27 at 09:08
axn is offline   Reply With Quote
Old 2020-05-27, 12:45   #370
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

27 Posts
Lightbulb Pretty-printing version

This will pad the first column with whitespaces according to the largest factor.
Code:
grep has results.txt | cut -d' ' -f3,7 | sort | uniq | sed 's/\(.\+\) \(.\+\)/\2 | \1/' | xargs -n 3 printf "%-$(grep has results.txt | cut -d' ' -f7 | sort -n | tail -n1 | wc -m)s%s %s\n"
kruoli is offline   Reply With Quote
Old 2020-05-29, 18:08   #371
axn
 
axn's Avatar
 
Jun 2003

3×1,531 Posts
Default 168k-169k

Code:
11913612882321568547 | 2^168067+1
529440290127209472457 | 2^168067+1
1095097862515757003 | 2^168083+1
112935917317127940619 | 2^168127+1
4348048176533623755059 | 2^168143+1
2669252530662018811 | 2^168151+1
27792700442532935027 | 2^168227+1
64041221214314071751243929 | 2^168227+1
529892890207167563 | 2^168247+1
4425374800979048923 | 2^168277+1
14325653049315486910579 | 2^168293+1
2997939649728149563 | 2^168293+1
120639429230097257 | 2^168541+1
37532429255854149795803 | 2^168673+1
676791877255029515264648017 | 2^168673+1
378682747448705237233 | 2^168697+1
82977879931601274913123 | 2^168697+1
21255899961329433168529 | 2^168719+1
842175077092807406188231297 | 2^168851+1
7472963070582532153 | 2^168887+1
33596203202578831931 | 2^168893+1
3270063071930998012057 | 2^168937+1
4894996582062418923192889 | 2^168937+1
26073786380747794529 | 2^168991+1
axn is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Testing Mersenne Primes with Elliptic Curves a nicol Math 3 2017-11-15 20:23
New Wagstaff PRP exponents ryanp Wagstaff PRP Search 26 2013-10-18 01:33
Hot tuna! -- a p75 and a p79 by Sam Wagstaff! Batalov GMP-ECM 9 2012-08-24 10:26
Statistical odds for prime in Wagstaff vs Mersenne diep Math 27 2010-01-13 20:18
Speed of P-1 testing vs. Trial Factoring testing eepiccolo Math 6 2006-03-28 20:53

All times are UTC. The time now is 17:21.

Sun May 31 17:21:19 UTC 2020 up 67 days, 14:54, 1 user, load averages: 1.46, 1.58, 1.65

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.