mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Information & Answers (https://www.mersenneforum.org/forumdisplay.php?f=38)
-   -   Fastest sieving program? (https://www.mersenneforum.org/showthread.php?t=21073)

paulunderwood 2016-03-08 13:10

Fixing n is fine, but keeping k small with give you more speed. Then you are into the territory of PrimeGrid's searches or Riesel Prime Search. :smile:

science_man_88 2016-03-08 13:13

[QUOTE=PawnProver44;428407]Ok, I'll do some of the work to fix the variable n. The k value I am trying to find. That shouldn't be too hard, right :smile::smile::smile:[/QUOTE]

k*149^n+1 = 6x+1 = (remainder multiplication( k* 5+1) for k*149^n to be usable we can split n into even and odd odd powers of 5 are remainder 5 on division by 6 and, even powers are remainder 1 on division by 6 neither time is b^n going to divide by 6 the factor of 6 must come from k ( aka k must be divisible by 6 for k*149^n+1 to be remainder 1 on division by 6) the other case is k*149^n+1 = 6y+5 = (6y+4) +1 so k*149^n = remainder 4 on division by 6 k*5^n has to have remainder of 4 when divided by 6 we have 5^n splitting into 1 and 5 remainders on division by 6 so k= 6z+4 or 6a+2 respectively ( in respect to order) make sense so so given a particular n you can narrow k down to 2 in every 6 numbers.

PawnProver44 2016-03-08 13:16

[QUOTE=science_man_88;428409]k*149^n+1 = 6x+1 = (remainder multiplication( k* 5+1) for k*149^n to be usable we can split n into even and odd odd powers of 5 are remainder 5 on division by 6 and, even powers are remainder 1 on division by 6 neither time is b^n going to divide by 6 the factor of 6 must come from k ( aka k must be divisible by 6 for k*149^n+1 to be remainder 1 on division by 6) the other case is k*149^n+1 = 6y+5 = (6y+4) +1 so k*149^n = remainder 4 on division by 6 k*5^n has to have remainder of 4 when divided by 6 we have 5^n splitting into 1 and 5 remainders on division by 6 so k= 6z+4 or 6a+2 respectively ( in respect to order) make sense so so given a particular n you can narrow k down to 2 in every 6 numbers.[/QUOTE]

Thanks for your help. I picked n=275523, so there should be more to eliminate now, right?:smile:

paulunderwood 2016-03-08 13:25

[QUOTE=PawnProver44;428410]Thanks for your help. I picked n=275523, so there should be more to eliminate now, right?:smile:[/QUOTE]

If you are going to search fixed n=275523 and b=2, you will not get into the top5000, however you might consider running a [URL="http://www.underbakke.com/primes/"]4-chances sieve[/URL] of a [URL="http://primes.utm.edu/top20/page.php?id=1"]twin prime[/URL] or [URL="http://primes.utm.edu/top20/page.php?id=2"]Sophie Germain[/URL].

science_man_88 2016-03-08 13:33

[QUOTE=PawnProver44;428410]Thanks for your help. I picked n=275523, so there should be more to eliminate now, right?:smile:[/QUOTE]

so based on what I said k must be 0 or 2 when dividing by 6 for k*149^275523+1 to have potential to be prime. remainder math is also known as modular arithmetic or [TEX]x\equiv g \pmod n [/TEX] where the symbol is a special type of equals and the variables can change. technically using remainder math , you can show that unless [TEX]k(b^n)+c\equiv m \pmod l[/TEX] where m doesn't share a factor with l, that k*b^n+c can't be prime because otherwise the number in question can be represented as a expression using that common factor which it then also shares. example with simpler numbers: [TEX]15\equiv 5 \pmod {10}[/TEX] since 5 and 10 have a common factor 5, one factor of 15 must be 5 so we already know it's not prime.

science_man_88 2016-03-08 14:30

[QUOTE=paulunderwood;428384]No :no:[/QUOTE]

I think if I remember correct you can always turn a form the doesn't have this restriction into one that does for example 60*152^n+7 can be turned into form k*b^n+7 with b prime with k =60*8^n and b =19 so any factorable number as b can be turned into a prime base by altering k with all the other factors of b raised to the power of n being factored in. I think it's this possibility they may be confusing with necessity. doh [url]http://mathworld.wolfram.com/ProthsTheorem.html[/url] shows that b=2 is proth numbers

ET_ 2016-03-08 16:03

If you want to enter the Top-5000 arena, consider checking prime factors of double Mersenne numbers ([url]http://www.doublemersennes.org[/url] ).

PawnProver44 2016-03-08 17:03

[QUOTE=science_man_88;428414]so based on what I said k must be 0 or 2 when dividing by 6 for k*149^275523+1 to have potential to be prime. remainder math is also known as modular arithmetic or [TEX]x\equiv g \pmod n [/TEX] where the symbol is a special type of equals and the variables can change. technically using remainder math , you can show that unless [TEX]k(b^n)+c\equiv m \pmod l[/TEX] where m doesn't share a factor with l, that k*b^n+c can't be prime because otherwise the number in question can be represented as a expression using that common factor which it then also shares. example with simpler numbers: [TEX]15\equiv 5 \pmod {10}[/TEX] since 5 and 10 have a common factor 5, one factor of 15 must be 5 so we already know it's not prime.[/QUOTE]

I noticed that the sequence k*b^n+-c generates infinitely many primes if k + c = b and k and c are coprime.

Example: 96*23^n+73 :smile:

science_man_88 2016-03-08 17:51

[QUOTE=PawnProver44;428425]I noticed that the sequence k*b^n+-c generates infinitely many primes if k + c = b and k and c are coprime.

Example: 96*23^n+73 :smile:[/QUOTE]

and yet I bet using another mod or a program that takes advantage of factoring algorithms is so far ahead of this that it's not funny I was originally just saying there are conditions on k,b, and c that we can prove allow us to say k*b^n+c can't be prime in certain scenarios.

PawnProver44 2016-03-08 18:18

[QUOTE=science_man_88;428426]and yet I bet using another mod or a program that takes advantage of factoring algorithms is so far ahead of this that it's not funny I was originally just saying there are conditions on k,b, and c that we can prove allow us to say k*b^n+c can't be prime in certain scenarios.[/QUOTE]

We can use modular congruence to fix variables k, b, and c so there are no primes of the form k*b^n+c, for example 3 always divides the sequence 50*13^n+7, and 5: 57*31^n+28:smile:

Batalov 2016-03-09 03:29

[QUOTE=paulunderwood;428389]Only c=+-1 will get you into the top5000, because the proof is rapid.[/QUOTE]
There are some exceptions... but they are rare:
[CODE]----- -------------------------------- ------- ----- ---- --------------
rank description digits who year comment
----- -------------------------------- ------- ----- ---- --------------
206 [URL="http://primes.utm.edu/primes/page.php?id=115433"]46821*2^3021380-374567[/URL] 909531 p363 2013
217 18976*2^2976221-18975 895937 p373 2014
1816 [URL="http://primes.utm.edu/primes/page.php?id=104057"]37674760044125*2^1513679-67931[/URL] 455677 p339 2012 (**)
2241 31723*2^1398273-507567 420927 p363 2013 (**)[/CODE]


All times are UTC. The time now is 11:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.