mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2016-05-06, 17:28   #1
PawnProver44
 
PawnProver44's Avatar
 
"NOT A TROLL"
Mar 2016
California

110001012 Posts
Post Does PPsieve work?

Is there a sieve program I can use to find primes of the form k*2^6012+1 (of course I want to use this for larger examples, too).

I typed in the following expression in an input file:

k*2^6012+1
-----------------------------

And for SrSieve:

> srsieve_xx.exe -P 1e10 -k 1 -K 1e4 mysieve.txt

and did not sieve k. Is there some NewPgen format or other program I can use to sieve k values? Thanks, that would be helpful.
PawnProver44 is offline   Reply With Quote
Old 2016-05-06, 21:27   #2
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
Is there a sieve program I can use to find primes of the form k*2^6012+1 (of course I want to use this for larger examples, too).

I typed in the following expression in an input file:

k*2^6012+1
-----------------------------

And for SrSieve:

> srsieve_xx.exe -P 1e10 -k 1 -K 1e4 mysieve.txt

and did not sieve k. Is there some NewPgen format or other program I can use to sieve k values? Thanks, that would be helpful.
a quick start for sieving by hand:

6012 = 0 mod 2 so k*2^6012+1 is k+1 mod 3
6012 = 0 mod 4 so ... is k+1 mod 5
6012 = 0 mod 6 so ... is k+1 mod 7
6012 = 2 mod 10 so ... is 4*k+1 mod 11
6012 = 0 mod 12 so ... is k+1 mod 13
6012 = 12 mod 16 so ... is k+1 mod 17
...

Last fiddled with by science_man_88 on 2016-05-06 at 21:54
science_man_88 is offline   Reply With Quote
Old 2016-05-07, 04:19   #3
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

10110111111102 Posts
Default

Newpgen is probably a good choice for this search.
henryzz is offline   Reply With Quote
Old 2016-05-07, 05:16   #4
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

224318 Posts
Default

srsieve/sr1sieve is supposed to be faster, though. newpgen's strength is elsewhere (in many other modes).

One needs to read the help file (or the output of the program run without parameters or with -h); it is well known to be decidedly not 'rocket surgery' to run sr*sieve.
Batalov is offline   Reply With Quote
Old 2016-05-07, 06:41   #5
axn
 
axn's Avatar
 
Jun 2003

2·2,543 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
primes of the form k*2^6012+1
Quote:
Originally Posted by Batalov View Post
srsieve/sr1sieve is supposed to be faster, though.
OP is looking for fixed-n variable k sieve. srsieve doesn't support it (efficiently). NewPGen (or maybe TwinGen?) is the way to go.
axn is online now   Reply With Quote
Old 2016-05-07, 07:36   #6
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

224318 Posts
Default

Ah, right, brainfart on my part. NewPGen it is for this form, right-o!
Batalov is offline   Reply With Quote
Old 2016-05-07, 12:53   #7
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

1,451 Posts
Default

This is sieve file for our forum user PawnProver44 in requested form. Since LLR time for this sequnece is measured in milliseconds ( 80-110 ms on AVX) you will find your own prime very fast.
But since ( reading last messages and post on this forum) you will not know how to process this file, I strongly suggest to admins to make forum only for you.
And here is image so you can make sieve by yourself

http://s32.postimg.org/drcxg5ao5/Clipboard02.jpg
Attached Files
File Type: zip pawn.zip (79.1 KB, 68 views)

Last fiddled with by pepi37 on 2016-05-07 at 13:48
pepi37 is online now   Reply With Quote
Old 2016-05-11, 11:09   #8
mersenning
 
mersenning's Avatar
 
"James"
May 2016
EU-StZ-BGN

1 Posts
Default

Some of the PSieve(K*2N+ and/or - 1) programs,based on Geoffrey Reynolds' GPL TPSieve source code:
PSieve Source - for factors of numbers of the form K*2N+ or - 1
CUDA- a version for use with nVIDIA GPUs
PSieveOpenCL - a version for use with ATI/AMD GPUs
TR PSieve-for finding twin primes of the same form
mersenning is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
The best work for my CPU MacMagnus Information & Answers 57 2013-11-22 16:27
How to calculate work/effort for PRP work? James Heinrich PrimeNet 0 2011-06-28 19:29
No Work Pilgrim Information & Answers 1 2008-01-31 18:53
It seems to work, but why ? T.Rex Math 15 2005-10-15 10:38
work to do... guido72 Software 2 2002-09-26 15:47

All times are UTC. The time now is 10:29.


Fri Aug 6 10:29:07 UTC 2021 up 14 days, 4:58, 1 user, load averages: 4.15, 3.76, 3.76

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.