mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Sierpinski/Riesel Base 5

Reply
 
Thread Tools
Old 2006-11-29, 00:11   #166
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default

Quote:
Originally Posted by Citrix View Post
I was trying to sieve
[some sequences with very large k]
Quote:
from the 15 k low weight project from 1-2 million, the srsieve for windows just freezes, it does not start working for 15 mins or so, no factor output etc. Is this a bug?
Before sieving can start the factors of each k are found by trial division. The trial division function I use just divides by each odd number up to sqrt(k), which for k < 2^32 was fine. When I extended the code to allow for k up to 2^64 I should have improved this trial division function :-)

I think it is just stuck in the trial division loop. Sorry about that. I'll try to write a better trial division function for the next version.

edit: As a work-around until then, try using the --no-filter switch. Sieving will be about one third slower, but I think it will avoid the need to do trial division. I haven't checked this though.

Last fiddled with by geoff on 2006-11-29 at 00:23
geoff is offline   Reply With Quote
Old 2006-11-29, 11:18   #167
axn
 
axn's Avatar
 
Jun 2003

10011110111012 Posts
Default

Quote:
Originally Posted by geoff View Post
michaf requested this feature earlier. The file will be large, about 20MB, but it should be faster to load than recomputing the tables each time.
If the bitmaps are dumped as is (binary), would that reduce the file size (as well as the read and parse times)?
axn is offline   Reply With Quote
Old 2006-11-30, 01:10   #168
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default srsieve 0.6.1

Quote:
Originally Posted by Citrix View Post
from the 15 k low weight project from 1-2 million, the srsieve for windows just freezes, it does not start working for 15 mins or so, no factor output etc. Is this a bug?
This bug is fixed in srsieve 0.6.1.
geoff is offline   Reply With Quote
Old 2006-11-30, 01:19   #169
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

115710 Posts
Default sr5sieve 1.4.4

This version includes the PPC/Linux assembler powmod fix. It also prints an estimate of the number of factors expected to be found for the range.

Quote:
Originally Posted by michaf
Geoff, can you make it happen, in a future release,
that sr5sieve will also accept work of the form:
3000-3050
In this version you can use a comma, dash, space or tab to seperate the range start and end.

Quote:
Originally Posted by axn1
If the bitmaps are dumped as is (binary), would that reduce the file size (as well as the read and parse times)?
20MB is the binary size (but it is getting smaller as primes are found. The large squarefree k with odd n need the largest bitmaps).
geoff is offline   Reply With Quote
Old 2006-11-30, 23:59   #170
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

48516 Posts
Default

Hi, I am having a strange problem with the file http://www.geocities.com/g_w_reynold...e-1.4.4.tar.gz I can open my local copy with 7-zip no problem, but when I download a copy from yahoo 7-zip says the CRC is wrong and can't open it. I have uploaded the good file several times, and each time it comes back corrupt.

Could someone try downloading the file and see you can open it? Any ideas what is happening here?

Last fiddled with by geoff on 2006-12-01 at 00:00
geoff is offline   Reply With Quote
Old 2006-12-01, 04:32   #171
Citrix
 
Citrix's Avatar
 
Jun 2003

2·7·113 Posts
Default

Thanks for the updated version.

TO answer your question, Geocities server adds some code to the end of your file, so it does not open. The server thinks your file is a webpage, if you try to d/l it from the link in your post.

Citrix is offline   Reply With Quote
Old 2006-12-01, 19:46   #172
michaf
 
michaf's Avatar
 
Jan 2005

479 Posts
Default

I can download it fine,
It opens in winRar,
It shows 18 filenames (total 88241 bytes)
Those 18 files, I can read with winRar just fine, and are extracted too.
The archive tests as being corrupted:

! C:\Documents and Settings\MICHA\Local Settings\Temp\sr5sieve-1.4.4.tar.gz: CRC failed in C:\Documents and Settings\MICHA\Local Settings\Temp\sr5sieve-1.4.4.tar.gz. The file is corrupt

The files I am able to extract are:
arithmetic.c
arithmetic.h
bitmap.c
bitmap.h
bsgs.c
CHANGES
choose.c
clock.c
config.h
COPYING
events.c
factors.c
files.c
INSTALL
Makefile
README
README2
TODO

hope this helps...
michaf is offline   Reply With Quote
Old 2006-12-02, 00:18   #173
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

100100001012 Posts
Default

Quote:
Originally Posted by Citrix View Post
TO answer your question, Geocities server adds some code to the end of your file, so it does not open. The server thinks your file is a webpage, if you try to d/l it from the link in your post.
It is strange that sr5sieve-1.4.5.tar.gz downloads OK, but sr5sieve-1.4.4.tar.gz still shows as corrupt. I didn't think junk at the end of the file would matter, it should get burnt off by gzip before the tar is opened, but 7-zip didn't complain about the .gz, only about the .tar inside.

Maybe 1.4.4 was corrupt before I uploaded it, I am transfering via floppy so it is not too unlikely, just strange that 7-zip didn't complain until after it had gone through yahoo.

sr5sieve-1.4.5 fix another bitmap related bug that caused 64-bit builds to incorrectly discard half of the factors as duplicates. It didn't affect the 32-bit builds so I haven't updated the 32-bit binaries.
geoff is offline   Reply With Quote
Old 2006-12-02, 00:33   #174
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

100100001012 Posts
Default

Quote:
Originally Posted by michaf View Post
IIt opens in winRar,
It shows 18 filenames (total 88241 bytes)
Thanks, there are some files missing there. Hopefully sr5sieve-1.4.5.tar.gz will be OK if not downloaded via a link.
geoff is offline   Reply With Quote
Old 2006-12-02, 11:58   #175
Xentar
 
Xentar's Avatar
 
Sep 2006

11×17 Posts
Default

Quote:
Originally Posted by geoff View Post
In this version you can use a comma, dash, space or tab to seperate the range start and end.
Think it doesnt work?

Quote:
Originally Posted by sr5work.txt
3450-3500
Quote:
Originally Posted by sr5sieve.exe
sr5sieve 1.4.4 -- A sieve for the Sierpinski/Riesel Base 5 projects.
Read 5404572 terms for 259 sequences from ABCD format file `sr5data.txt'.
Split 259 base 5 sequences into 4934 base 5^180 subsequences.
Reading project work file `sr5work.txt' ...
ERROR: Malformed first line in `sr5work.txt'.
Edit:
"3450 3500" (with space) works fine.

Last fiddled with by Xentar on 2006-12-02 at 11:59
Xentar is offline   Reply With Quote
Old 2006-12-03, 21:06   #176
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

100100001012 Posts
Default sr5sieve 1.4.6

sr5sieve version 1.4.6 will load the Legendre symbol tables from a cache
file `sr5cache.bin' if one is present in the current directory at startup.

To create the cache file, run `sr5sieve -c'. It is not necessary to create a
new file each time a new sr5data.txt is downloaded, as the cached tables
don't change and only the ones actually needed will be loaded.

sr5cache.bin is in an architecture-specific binary format, so it can't be
shared between 32- and 64-bit or big- and little-endian machines. (sr5sieve
will warn that the format is wrong and refuse to use the file if you try).

sr5cache.bin is also quite large (~18Mb with the 262 k sr5data.txt), so if
disk space becomes tight you can just delete it, sr5sieve will then build
the necessary tables from scratch at startup, as previous versions did.
geoff is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Prime Riesel and Sierpinski k robert44444uk Open Projects 587 2016-11-13 15:26
Sierpinski/ Riesel bases 6 to 18 robert44444uk Conjectures 'R Us 139 2007-12-17 05:17
Sierpinski/Riesel Base 10 rogue Conjectures 'R Us 11 2007-12-17 05:08
Sierpinski / Riesel - Base 23 michaf Conjectures 'R Us 2 2007-12-17 05:04
Sierpinski / Riesel - Base 22 michaf Conjectures 'R Us 49 2007-12-17 05:03

All times are UTC. The time now is 05:55.


Fri Aug 6 05:55:36 UTC 2021 up 14 days, 24 mins, 1 user, load averages: 3.48, 3.50, 3.22

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