mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Twin Prime Search

Reply
 
Thread Tools
Old 2010-05-21, 17:28   #1
Svenie25
 
Svenie25's Avatar
 
Aug 2008
Good old Germany

3·47 Posts
Default Restart ;)

Hi Folks.

After around one year of being absent, I am back. ;)

I would like to restart my small project to find a prime @ n=666777. I know, it is a lot of work...

And now my question is, if someone please could give me some hints how to use tpsieve for the start.

Am I right, that I have to do a short sieve with NewPGen?

Any hint would be very helpfull.

Thanks in advise

Sven S.
Svenie25 is offline   Reply With Quote
Old 2010-05-21, 21:44   #2
Oddball
 
Oddball's Avatar
 
May 2010

499 Posts
Default

On my PC, NewPGen is faster than tpsieve for one n.

If you still want to use tpsieve, click the start menu, click "Run...", and then type in "cmd". The command prompt will come up, and you should type "cd [file that tpsieve is in]". Once that's done, type in:

tpsieve -i (name of file) -p 10e9* -P 20e9** -N 666777

*lower limit of range. One example is to use 10e9 to begin sieving from p=10G.
**upper limit of range. One example is to use 20e9 to finish sieving at p=20G.

By the way, would you be interested in testing n=390000? The testing times are faster, and you have a greater chance of finding a twin. Reservations are available here:

http://www.mersenneforum.org/showthread.php?t=13376

edit: Unlike NewPGen, tpsieve only gives you a list of factors; it doesn't remove them from the file. You need to remove those factors from the sieve file manually or write a separate program to do so.

Last fiddled with by Oddball on 2010-05-21 at 21:52
Oddball is offline   Reply With Quote
Old 2010-08-05, 19:38   #3
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

10100111102 Posts
Default

Quote:
Originally Posted by Oddball View Post
edit: Unlike NewPGen, tpsieve only gives you a list of factors; it doesn't remove them from the file. You need to remove those factors from the sieve file manually or write a separate program to do so.
Don't know about Windows, but in Linux it's only a few shell commands.

Good luck, btw.

Last fiddled with by Puzzle-Peter on 2010-08-05 at 19:54
Puzzle-Peter is offline   Reply With Quote
Old 2010-08-05, 22:21   #4
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3×2,083 Posts
Default

Quote:
Originally Posted by Puzzle-Peter View Post
Don't know about Windows, but in Linux it's only a few shell commands.

Good luck, btw.
I usually just use srfile (included with the srsieve sieving program), which can remove factors from a NewPGen formatted file with the following command:

srfile -G -k factors.txt sieve.txt

That will output the sieve file with factors removed to t17_b2.prp. I've never tried it with a twin sieve file before; the exact output file name may be different, but it should work properly.
mdettweiler is offline   Reply With Quote
Old 2010-08-05, 23:04   #5
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

2·1,423 Posts
Default

srfile can't handle candidate-files for twin-search!

If you want to sieve for twins with n=666777 and with kmin=1 (or 2) / kmax=1M using tpsieve, you need a file with kmax < pmin, so for this example sieve with NewPGen upto p=1M first.

If you got a multicore, use a file called "tpconfig.txt" and insert a line containig the number of threads. So for a Quad insert
Code:
threads=4
After NewPGen'ing you got a file (named say '666777.txt') like this
Code:
2000002:T:0:2:3
75 666777
165 666777
765 666777
1239 666777
1431 666777
...
and now you can call tpsieve with
Code:
tpsieve -i 666777.txt -p 2e6 -P 1e9
Here 'pmin' is the the sieve-depth of the NewPGen file in the header line.

Now tpsieve will sieve in 4 threads upto p=1e9. I've not yet tested/compared the timings for NewPGen and tpsieve.

To consider: tpsieve will find multiple factors of one candidate, NewPGen don't!

To remove the factors tpsieve will find (in a file called 'tpfactors.txt'), you have to use a script!
kar_bon is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restart test? Or what to do? Thecmaster Hardware 8 2016-05-14 02:22
Is it possible to restart? aketilander Software 3 2011-09-03 11:12
P-1 Test Ruined by Restart? jinydu Lounge 3 2008-07-19 08:55
How should I restart? Unregistered Software 3 2003-11-19 23:19
How to restart a number Cactiman Software 1 2003-06-04 14:19

All times are UTC. The time now is 09:59.

Mon Sep 28 09:59:22 UTC 2020 up 18 days, 7:10, 0 users, load averages: 1.41, 1.47, 1.42

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.