![]() |
|
|
#1 |
|
May 2008
Worcester, United Kingdom
22×7×19 Posts |
Hi Everyone,
I have now published my initial version of a Python driver for GGNFS and MSIEVE. It is available here: http://gladman.plushost.co.uk/oldsit.../factoring.php It has been developed on Windows and will probably need a bit of work to get it working on Linux. Also, while the main operation has been tested by myself and Jeff Gilchrist, some of the less used features still need testing. Jeff has kindly modified his guide here: http://gilchrist.ca/jeff/factoring/n...ers_guide.html to describe how factmsieve.py can be used. Bear in mind that it is new and will contain bugs. I would be most grateful for feedback on bugs and suggestions for improvement. In broad terms it duplicates the functions of factmsieve.pl but can also use MSIEVE for polynomial selection. I would like to thank Jeff Gilchrist for the extensive help he has given during its development. best regards, Brian Gladman |
|
|
|
|
|
#2 |
|
Jun 2003
Ottawa, Canada
117310 Posts |
A couple of nice features that this python driver has over the
factmsieve.pl perl script besides a lot of the bugs that Brian fixed is: clean stopping and re-starting, plus it supports doing polynomial selection with msieve (default) and pol51 whichever you prefer. It also accepts reading in msieve polynomial files (.fb) so you don't need to worry about converting them from msieve to ggnfs format to use with the script. So now you can easily do an msieve -> ggnfs -> msieve factoring. Great work Brian! Jeff. |
|
|
|
|
|
#3 | |
|
Aug 2009
Magdeburg, Germany
6110 Posts |
'SAVEPAIRS = True'
Quote:
system: Debian/sid - sidux, python2.6 from experimental |
|
|
|
|
|
|
#4 |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3×2,083 Posts |
When I try to run this on Windows XP/cygwin with python 2.5.2, I get:
Code:
factmsieve.py:188: Warning: 'with' will become a reserved keyword in Python 2.6
File "factmsieve.py", line 188
with open(file_path, 'r') as in_file:
^
SyntaxError: invalid syntax
|
|
|
|
|
|
#5 | ||
|
Aug 2009
Magdeburg, Germany
61 Posts |
Quote:
Quote:
|
||
|
|
|
|
|
#6 | |
|
May 2008
Worcester, United Kingdom
22·7·19 Posts |
Quote:
It looks like your distribution's gzip module can't handle the 'with' contexts that I use in the gzip subroutine: Code:
with open(fr, 'rb') as in_file:
with gzip.open(to, 'wb') as out_file:
out_file.writelines(in_file)
Code:
with open(fr, 'rb') as in_file:
out_file = gzip.open(to, 'wb')
out_file.writelines(in_file)
out_file.close()
code tags added in moderation Thanks for trying the program and reporting this. Brian Gladman Last fiddled with by wblipp on 2010-01-14 at 07:29 Reason: add code tags |
|
|
|
|
|
|
#7 |
|
Jan 2009
Bilbao, Spain
28310 Posts |
It works great.
Thank you Brian and Jeff. |
|
|
|
|
|
#8 |
|
May 2008
Worcester, United Kingdom
22×7×19 Posts |
|
|
|
|
|
|
#9 |
|
"Sander"
Oct 2002
52.345322,5.52471
29·41 Posts |
|
|
|
|
|
|
#10 |
|
Jan 2009
Bilbao, Spain
283 Posts |
|
|
|
|
|
|
#11 |
|
May 2008
Worcester, United Kingdom
10000101002 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Msieve & ggnfs on MacOS | xilman | Msieve | 8 | 2017-05-20 00:12 |
| Factorizing with MSIEVE, GGNFS & Factmsieve.py | Romuald | Msieve | 24 | 2015-11-09 20:16 |
| Infinite loop for ggnfs or msieve | Greebley | Aliquot Sequences | 4 | 2013-02-06 19:28 |
| Error running GGNFS+msieve+factmsieve.py | D. B. Staple | Factoring | 6 | 2011-06-12 22:23 |
| A new driver? (or type of driver?) | 10metreh | Aliquot Sequences | 3 | 2010-02-15 15:57 |