mersenneforum.org  

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

Reply
 
Thread Tools
Old 2016-03-08, 12:22   #12
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2·32·11·19 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
Any other forms available? The only test that I think would Work is Lucas's Test (N-1), I do not know where I am going to calculate large exponents. Are there any mathematics libraries that would allow me to do large exponent and modular computation?
PFGW uses the fastest library on the planet.
paulunderwood is offline   Reply With Quote
Old 2016-03-08, 12:24   #13
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
Also, which value: k, b, n, or c would be the easiest to (substitute) find primes for
the pairings k and c, and b and c have to be coprime ( aka not share a divisor) for the form to have a chance at being prime. also all primes greater than 3 have to have remainder 1 or 5 when dividing by 6.

Last fiddled with by science_man_88 on 2016-03-08 at 12:25
science_man_88 is offline   Reply With Quote
Old 2016-03-08, 12:29   #14
PawnProver44
 
PawnProver44's Avatar
 
"NOT A TROLL"
Mar 2016
California

110001012 Posts
Post

Quote:
Originally Posted by paulunderwood View Post
PFGW uses the fastest library on the planet.
Are there any other forms I could use to prove large primes besides k*b^n+-1? Just Curious.
PawnProver44 is offline   Reply With Quote
Old 2016-03-08, 12:33   #15
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2·32·11·19 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
Are there any other forms I could use to prove large primes besides k*b^n+-1? Just Curious.
In general: no. As long as you know >12.5% factorisation of N^2-1, you can prove something prime in a reasonable amount of time. For example this prime.

If k (and c) are small the underlying library is faster.

Last fiddled with by paulunderwood on 2016-03-08 at 12:36
paulunderwood is offline   Reply With Quote
Old 2016-03-08, 12:37   #16
PawnProver44
 
PawnProver44's Avatar
 
"NOT A TROLL"
Mar 2016
California

3058 Posts
Post

Quote:
Originally Posted by paulunderwood View Post
In general: no. As long as you know >12.5% factorisation of N^2-1, you can prove something prime in a reasonable amount of time. For example this prime.

If k (and c) are small the underlying library is faster.
What test would you apply?
PawnProver44 is offline   Reply With Quote
Old 2016-03-08, 12:48   #17
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1110101100102 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
What test would you apply?
I am not sure about what you are asking. With 33.333...% of N-1 or N+1 one can use BLS; for 16.666...% of N^2-1 one can use the combined test; with 15% of the factors of N^2-1 one can prove with KP and with >12.5% of N^2-1 one can apply CHG. All can be done in a "reasonable" amount of time.

In prime searching all things are equal... for maximum speed choose k (and c) small, so that the library operates most quickly. Then run a sieve so that the elimination rate is equal to the average PRP test time of the range -- for varying n, this is about 80% of the range. Finally, run PFGW on what the sieve leaves.

Last fiddled with by paulunderwood on 2016-03-08 at 12:52
paulunderwood is offline   Reply With Quote
Old 2016-03-08, 12:52   #18
PawnProver44
 
PawnProver44's Avatar
 
"NOT A TROLL"
Mar 2016
California

3058 Posts
Post

Quote:
Originally Posted by paulunderwood View Post
I am not sure about what you are asking. With 33.333...% of N-1 or N+1 one can use BLS; for 16.666...% of N^2-1 one can use the combined test; with 15% of the factors of N^2-1 one can prove with KP and with >12.5% of N^2-1 one can apply CHG. All can be done in a "reasonable" amount of time.

In prime searching all things are equal... for maximum speed choose k (and c) small, so that the library operates most quickly. Then run a sieve so that the elimination rate is equal to the average of of the range -- for varying n, this is about 80% of the range. Finally, run PFGW on what the sieve leaves.
Well in that case, here is an example: say we had large enough n for a probable prime of the form k*149^n +1 (k is large, say 3,000 digits), however we cannot factor k. Is there a way to prove k*149^n+1 prime?
PawnProver44 is offline   Reply With Quote
Old 2016-03-08, 12:56   #19
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×32×11×19 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
Well in that case, here is an example: say we had large enough n for a probable prime of the form k*149^n +1 (k is large, say 3,000 digits), however we cannot factor k. Is there a way to prove k*149^n+1 prime?
N-1 = k*149^n. So we know some of the factorisation of N-1. Apply what I said above. For k=3,000 digits, any problem numbers can be done with Primo.
paulunderwood is offline   Reply With Quote
Old 2016-03-08, 13:01   #20
PawnProver44
 
PawnProver44's Avatar
 
"NOT A TROLL"
Mar 2016
California

3058 Posts
Post

Quote:
Originally Posted by paulunderwood View Post
N-1 = k*149^n. So we know some of the factorisation of N-1. Apply what I said above. For k=3,000 digits, any problem numbers can be done with Primo.
Do we have to factor k or not in order to prove k*149^n+1 prime? Factoring k would take a long time.
PawnProver44 is offline   Reply With Quote
Old 2016-03-08, 13:02   #21
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2·32·11·19 Posts
Default

Quote:
Originally Posted by PawnProver44 View Post
Do we have to factor k or not in order to prove k*149^n+1 prime? Factoring k would take a long time.
paulunderwood is offline   Reply With Quote
Old 2016-03-08, 13:04   #22
PawnProver44
 
PawnProver44's Avatar
 
"NOT A TROLL"
Mar 2016
California

197 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
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

Last fiddled with by PawnProver44 on 2016-03-08 at 13:05
PawnProver44 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
The Fastest Path a1call Puzzles 23 2016-03-23 17:46
Fastest you've driven a car? Oddball Lounge 43 2011-03-14 00:26
Fastest Primality Tests flouran Miscellaneous Math 174 2010-07-15 00:02
Looking for a sieving program jasong Math 17 2007-03-21 18:50
The fastest way to a top-5000 prime? lsoule 15k Search 13 2005-09-19 20:24

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


Mon Aug 2 11:01:20 UTC 2021 up 10 days, 5:30, 0 users, load averages: 2.26, 1.85, 1.67

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.