![]() |
|
|
#45 | |
|
"Bob Silverman"
Nov 2003
North of Boston
11101100011012 Posts |
Quote:
If, instead of saying "I am interested in primes of the form p = m p1^n p2^m+1; can someone TEACH me to implement a sieve to eliminate many of the composite candidates" rather than "I am doing new research on primes of the form p = ...., can someone GIVE me the software I need" I would have responded with a great deal of help. Can't you see the difference? The latter boldly makes a ridiculous assertion and is combined with an apparent DISINTEREST in learning. (he wanted it handed to him) Indeed; my very first response was designed to elicit some thinking about the mathematics of the problem. IT WAS IGNORED. I later wrote up what happens when the exponents are first restricted to > 0, then > 1. The mathematics of what I wrote was ALSO ignored. I admit to showing disdain for novices who make ridiculous claims, and then either ignore or argue with my purely mathematical reply. This is what happened here. I also dislike the "I am not a mathematician, but I am doing NEW RESEARCH" type of claim. Most of the good math professors that I have had do not simply hand students the answer; they can not learn that way. Instead, one discusses techniques and approaches to a problem and leads the student to find the answer himself. i.e. the Socratic Method. Unfortunately, too many students simply want the answer HANDED to them (or in this case a piece of software), and only want to learn the very minimum needed to solve the problem at hand. This, of course, leaves them unable to deal with the next problem that comes along. I have NO patience (and see no reason why I should have any) for students of this type. As for being "below my level", the level matters very much. Which is why courses have PRE_REQUISTITES. The pre-req for number theory is a mastery of basic algebra, combined with some mathematical maturity (aka "reasoning ability"). One should already know about proof methods, induction, polynomial arithmetic, some elementary linear algebra, arithmetic/geometric series, etc. About the equivalent of a strong honors level 2nd year high school algebra course. A final prerequisite is an INTEREST IN LEARNING THE SUBJECT. Asking that others hand you code does not show such interest. And believing that blindly running code written by others is doing "new research" is just crazy. Last fiddled with by R.D. Silverman on 2009-07-28 at 01:28 Reason: fix typos |
|
|
|
|
|
|
#46 | ||||||||
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
Of course. I saw no reason to extend my previous remarks to encompass factors such as attitude.
Quote:
Quote:
Quote:
Your mind is a terrible thing to waste. Quote:
Quote:
Quote:
Quote:
Quote:
Last fiddled with by cheesehead on 2009-07-28 at 03:57 |
||||||||
|
|
|
|
|
#47 |
|
Jul 2009
17 Posts |
Apparently, it is still not obvious I am working on this sieve myself...
|
|
|
|
|
|
#48 |
|
Jul 2006
Calgary
52×17 Posts |
|
|
|
|
|
|
#49 | |
|
"Bob Silverman"
Nov 2003
North of Boston
756510 Posts |
Quote:
their factorization is known......... And a primality PROOF is easy via Brillhart-Lehmer-Selfridge (and Kraitchik etc). |
|
|
|
|
|
|
#50 | ||
|
"Bob Silverman"
Nov 2003
North of Boston
166158 Posts |
Quote:
Quote:
|
||
|
|
|
|
|
#51 | |
|
Mar 2003
New Zealand
13·89 Posts |
Some people seem to have missed the part of the original message where it was stated that k is the sieving variable. In k*b1^m*b2^n, b1, b2, m, n are all fixed.
Anyway beyastard, if the response in this thread hasn't put you off prime searching altogether, there is a way you can use NewPGen to sieve for primes in some of the forms k*b1^m*b2^n+1, provided you choose the coefficients carefully: By choosing a particular form k*b1^m*b2^n+1 that can be re-written as k*(b1^r*b2^s)*(b1^t*b2^u)^v+1 where b1^r*b2^s is very small and b1^t*b2^u < 2^31, you could sieve with the NewPGen k*b^n+1 fixed-n (type 0) sieve, plus some manual filtering of the output sieve file. For example: k*3^1001*11^500+1 can be written as k*3*99^500+1, and so you could use a NewPGen type 0 sieve for k*b^n+1 with b=99, n=500, and multiply kmin and kmax by 3 (i.e. sieve the range kmin*3 <= k <= kmax*3 instead of kmin <= k <= kmax). Then once the sieve has run for a while and removed all the very small factors, stop it and delete all k that are not multiples of 3, before resuming sieving with the modified file. Another example: Quote:
In practice this method will be quite limited because the multiplier for k (3 in the first example is OK, but 117649 in the second is probably too large) reduces both the efficiency of the sieve as well as the range of k that can be sieved. But it should beat trial factoring each candidate separately. You can probably do something similar with a NewPGen fixed-k (type 16) sieve. |
|
|
|
|
|
|
#52 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
11·389 Posts |
I'm not sure it was clear that k was the variable one, but if so, you could use a k*b^n+1 sieve with k=k, b=(b1^m*b2^n), and n=1. I don't know if you'd lose efficiency by having such a large b.
|
|
|
|
|
|
#53 |
|
Mar 2003
New Zealand
22058 Posts |
|
|
|
|
|
|
#54 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10B716 Posts |
|
|
|
|
|
|
#55 |
|
Jul 2009
17 Posts |
Through the course of this thread I came to the conclusion that sieving
across a single n would be more practical. The core of this sieve I have already completed and just working out a few small details of it. An alpha version of it will be completed in a day or two. The way the sieve works is for k*b1^n1*b2^n2+1 I reduce it to k1=k*b1^n1 and use k1*b2^n2+1. As this makes k1 such a large number I am using GMP. While writing this sieve I found a few things that will speed up sieving. Most likely these are already known but, as I have said, I don't know all the various algorithms for sieves as this is the first one I'm writing. Once I get the basics done, I'll then worry about optimizing it. |
|
|
|
![]() |
| 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 |