![]() |
|
|
#23 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
|
|
|
|
|
|
#24 |
|
Jul 2009
17 Posts |
I do understand EVERY prime with no exception can be represented as
k*b1^n1*b2^n2+1 if b1 = n1 = b2 = n2 = 1 and k = p-1/2. So an exercise to find a prime NOT of this form is simply futile. If b1 and b2 are prime bases > 2 and differing and n1 and n2 are > 0, k even, then there are primes NOT of this form and the smallest you can represent would be 2*3^1*5^1+1 = 31, therefore, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 are NOT of this form. But from what I see, a sieve of this form can and will allow people to find primes currently unknown. Also, I believe sieving across n1 or n2 will be a more efficient use of time instead of sieving across k in a search for a large prime. I think both b1 and b2 should be prime bases and k should be chosen so it does not share a factor with the bases and is even. Having prime bases allows for easy factoring of p-1 so a BLS can be done. As I have stated before, the largest prime I've found of this form is 9926*7^11387*11^14771+1 (25010 digits) but I have, since then, realized 9926 has a factor of 7 so the correct prime would be 1418*7^11388*11^14771+1. Finding this prime was no easy task as I cannot sieve this form and so have to use an ABC2 file with pfgw and prp each and every candidate. Again, I will state my case and say I believe a sieve of this form will allow many more large primes to be discovered. As for those that say I haven't been doing my "homework," since Dr Silverman's post I have download vaious PDF's including: A Computational Introduction to Number Theory and Algebra by Victor Shoup The ABC's of Number Theory by Prof Noam D Elkies Elementary Number Theory, A Computational Approach by William Stein Elementary Number Theory in Nine Chapters by James J Tattersall and even Fast Generation of Random, Strong RSA Primes by R D Silverman |
|
|
|
|
|
#25 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5×17×89 Posts |
Quote:
EVERY prime can be put into the form k * p1^n p2^m + 1 where k is even and p1, p2 are primes. The O.P. placed no restriction on n or m.!!!!!!! Suppose now we restrict to n,m > 0. Now, almost all primes have a representation. I say 'almost all' in the measure-theoretic sense. The exceptions form a set of density 0. Which ones can't? I leave it as an exercise. Hint: "Think about the Germain primes". Suppose now we restrict to n,m > 1. The set that has a representation is no longer 'almost all primes', but it is a set of positive density. That density is easy to compute. (Hint: "what fraction of even integers are squarefee; now apply to having two distinct square factors). Furthermore, a "sieve" in the sense originally requested is computationally impossible. We want p-1 = k * p1^n, p2^m. The RHS has 5 (FIVE!) free variables. Over which one shall we sieve? 5-Dimensional sieves are somewhat difficult from a computational point of view..... ![]() Finally, note that for ANY pair (p1, p2), there are infinitely many primes of the requested form. Their density is also positive. (Think about the PNT for AP). In short, there are so many primes of this form that looking for them is EASY. There is no 'research' here. The density of these primes is well understood. |
|
|
|
|
|
|
#26 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5×17×89 Posts |
Quote:
requested form. See my followup. |
|
|
|
|
|
|
#27 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5×17×89 Posts |
Quote:
by others to implement algorithms that you do not understand is not 'research'. Blindly computing primes is not 'research'. Nor is it doing mathematics. And you did NOT request a 'sieve of a specific form'. You said nothing at all about the 'form' of the sieve you wanted. Damn it!! There are 5 variables involved! Over which variable(s) did you want to sieve? Fix any 4 of them and the problem becomes a simple sieve; trivial to implement. A good learning exercize would be for you to write such a sieve yourself instead of asking that it be handed to you. Learn the difficulties involved. Learn the elementary number theory involved. Learn why such a general sieve (in the sense you ask for) is computationally impossible. OTOH, if you are just doing this for fun, that I can understand. But it is not new, it is not research, and doesn't even add enough knowledge to mathematics to make a decent undergraduate paper. |
|
|
|
|
|
|
#28 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
102678 Posts |
Run -f file.txt and PFGW will attempt to trial factor every number (to an automated depth) before PRPing it. Read pfgwdoc.txt to learn about the other options and how to tweak how much TF it tries.
|
|
|
|
|
|
#29 | ||||
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
Quote:
That's the lesson to be learned from trying to find a prime that is NOT of the form defined in the OP. If you'd simply done that right away as requested, we'd have saved a lot of time. Quote:
There's a difference between requiring (m, n > 0) and not requiring that. Quote:
Maybe you intended that the restriction (m, n > 0) be in place all along. Your examples in the OP all met that requirement. But you hadn't actually stated that restriction, and that's why your original proposal met with the reception that it did. We can't read your mind -- just the actual text. Quote:
This was the first post where you've shown us that you made any attempt to do the actual "homework assignment" by Dr. Silverman. You hadn't shown us that in any post before #24. Last fiddled with by cheesehead on 2009-07-27 at 13:57 |
||||
|
|
|
|
|
#30 | |
|
"Bob Silverman"
Nov 2003
North of Boston
1D8D16 Posts |
Quote:
not very restrictive. I gave a hint. I am still curious as to why the OP thinks that finding new primes by blindly using someone else's software is 'research'. |
|
|
|
|
|
|
#31 |
|
Jul 2009
17 Posts |
As you stated, "5-Dimensional sieves are somewhat difficult from
a computational point of view..." it can be reduced to 3 values. Let FicSieve be the name of the fictional fixed-k sieve. Command line can be something like: >FictSieve --k=6 --b1=7 --n1=150000 --b2=11 --n2=2-150000 --pmin=2 --pmax=10000000 [etc] The program checks to see if k shares any factors with b1 or b2, if it does, it terminates with error message such as "k shares base with b1/b2". If it shares no factors then it uses k*b1^n1 as k1 so that it becomes k1*b2^n2+1 and sieves across the n2 variable, all others being fixed. Basically, a k*b^n+1 sieve with a k value > 100k digits and having a large number of small factors (above example being 2*3*7^150000). An alternative (and probably better method) would be where you can input a term for k on the commandline so only 3 terms will be needed, for example: >FictSieve --k=2*3*7^150000 --b=11 --n=2-150000 --pmin=2 --pmax=10000000 [etc] As I am not familiar with sieves and have no well-commented source of a few different kinds to study and learn about, I am not sure if such a task is feasible. If it is, I would probably say that because the above combining of terms into k1 creates such a large value, a library such as GMP may be required. Also, if I am able to learn the "mechanics" of sieves, I'd tackle this problem myself. And yes, Doc, I do see flaws in this form but still trying to work through them as I see there is potential in forms of this kind, i.e., k*b1^n1*b2^n2...bi^ni+1, as p-1 is easily factored into small primes (since practically all the factors are known beforehand). An easily factored number really helps in a BLS test for primality. The biggest hurdle is reducing all the k*b(i-1)^n(i-1) into a single value to sieve for k1*bi^ni+1 as k1 will be such a large number. As you have stated, "In short, there are so many primes of this form that looking for them is EASY." So, in a nutshell, sieving for primes of this form will help increase the number of large primes discovered. The biggest hurdle to overcome will be finding an efficient method of doing so. |
|
|
|
|
|
#32 | |
|
"Bob Silverman"
Nov 2003
North of Boston
166158 Posts |
Quote:
of increasing the number of known large primes. What will you do with these primes? What mathematics will be learned? What problems will they help solve? What algorithms will be improved by searching for them? |
|
|
|
|
|
|
#33 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5·17·89 Posts |
Quote:
studying existing code is the WORST way to learn about sieves. Start by learning the basic number theory behind them. Then implement one yourself. And one does NOT need an MP library to sieve numbers of the form you suggest as long as k, and the two primes are themselves only single precision. And even if they are multi precision, all one needs to sieve through primes less than 2^31 (on a 32-bit machine) is a simple routine that returns the remainder when an MP number is divided by a single precision number. Get a copy of Knuth Vol II. Read the section on multi-precision arithmetic. He also discusses how to perform a sieve. |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| More NFS@Home 16e Lattice Sieve V5 wu's needed | pinhodecarlos | NFS@Home | 46 | 2018-03-12 22:43 |
| Advantage of lattice sieve over line sieve | binu | Factoring | 3 | 2013-04-13 16:32 |
| Sieve needed for a^(2^b)+(a+1)^(2^b) | robert44444uk | Software | 55 | 2009-08-12 06:39 |
| Help needed | AntonVrba | Math | 3 | 2007-03-06 10:55 |
| Volunteer needed for sieve merging | MooMoo2 | Twin Prime Search | 9 | 2007-01-01 21:13 |