![]() |
|
|
#34 | |
|
Jul 2009
17 Posts |
Quote:
say "... new areas of prime number searches...," simply a mistake of words on my part. Also I stated, "... but I research prime numbers..." which I do when I have time but have found nothing that is already known, so nothing to post about that. As for "blindly using someone else's software," lead me to sources I can study to learn to write my own sieve's and I'll do it all myself. Further, I've never called prime searching as research. As for cheeseheads comment, "But your homework assignment wasn't to download PDFs; it was to try to find a prime that was not of the form you stated in your OP." Doc said, "May I suggest that you pick up and read any elementary number theory book. Do the exercizes." And so I followed his suggestion and did so and am reading them as time permits. And finally, for the remainder of the "assignments," I am currently working on them, again, as time permits. |
|
|
|
|
|
|
#35 | |
|
Jul 2009
17 Posts |
Quote:
are doing useless searches for such primes. |
|
|
|
|
|
|
#36 |
|
Jul 2009
100012 Posts |
Yes, that is what I have been doing, thought it is still quite slow.
|
|
|
|
|
|
#37 |
|
"Bob Silverman"
Nov 2003
North of Boston
5×17×89 Posts |
|
|
|
|
|
|
#38 | |
|
"Bob Silverman"
Nov 2003
North of Boston
11101100011012 Posts |
Quote:
and has led to the irrational-base DWT that is now used. The effort to develop code also taught us many things. The primes themselves are not very useful at all. Finding them is certainly FUN, but finding a new one or even several new ones will not advance our understanding of the underlying mathematics. OTOH, the continued search for better algorithms has great value. You on the other hand have made it clear that you are not interested in the algorithms. It is also clear that you lack the background to make a contribution towards improved algorithms. You simply want someone else's code handed to you. <plonk> |
|
|
|
|
|
|
#39 | |
|
Nov 2008
2·33·43 Posts |
Quote:
P.S. Dr Silverman's ignore list is very long. I'm one of the hundreds on it. If you join this forum and ask lots of questions, you will end up on it. He is on my ignore list for insulting me. Last fiddled with by 10metreh on 2009-07-27 at 16:50 |
|
|
|
|
|
|
#40 | |
|
Jul 2009
17 Posts |
Quote:
and have been studying as well as working on your "assignments" at every opportunity. You should try not to be so opinionated and make assumptions that contradict other peoples statements. Did I not say I'd do it myself once I know the basic algorithms involved? Do you recall in one of my posts I stated "also, if I am able to learn the 'mechanics' of sieves, I'd tackle this problem myself" and did I not say that I took your suggestions and am studying elementary number theory? Already, I am in the planning stages of writing this sieve myself. Also, I have found a copy of Knuth vol II as you suggested (as well as vols I and III). I really don't know how much more clear I can make it to you when you won't even listen to what I'm saying. Maybe I should just be blunt and say it in simple language so that you may understand. I am studying elementary number theory and am writing my own sieve for this form. I hope that statement is clear enough for you to understand. It is not my intention to be rude, I am simply trying to get this across to you. I am, also, trying to get it across to you that I have been taking your suggestions and working out solutions for myself. If you wish to ignore me from this point on, well, I'd like to thank you for your input as it has led me to a better understanding and helped me to initiate more in-depth study into number theory. |
|
|
|
|
|
|
#41 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
Quote:
|
|
|
|
|
|
|
#42 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
Quote:
It's not arrogance (he can walk the walk); it's inability to modulate his message to communicate with students much below his level, in my opinion. He's actually mellowed a bit recently (though I don't necessarily expect you to believe that without having scanned the archives). |
|
|
|
|
|
|
#43 | |
|
Jul 2009
17 Posts |
Quote:
the Doc but continue to respect him thought I, at times, get frustrated trying to get my point acrossed. Also, to validate my last post I am showing how far I have got in a siev of this form. It appears more simple than I have originally anticipated. The basic algorithm is as follows in pseudocode: Code:
// sieve algorithm for k*b1^n1*b2^n2+1
// where k, b1, n1, b2 are fixed and n2 is variable
//
// ...simplified PSEUDOCODE...
//
// get input from user/file for terms
BEGIN
GetInput();
if(k%b1 OR k%b2)
print("Error: k shares factor with b1 or b2")
exit
// initialize bitmap
// for this example, we will simplify it by using a bytemap
for(i=0; i<maxn; i++)
bitmap[i] = 0 // clear all bits
// initialize values
k1 = k*b1^n1
p = minp // set p to minimum p
n = minn // set n to minimum n we are sieving
// begin sieve
do
if(k1*b2^n2+1 % p)
setbit(bitmap[i]) // composite
// remove all remaining candidates that share factor
while(i <= maxn)
i += p-1
setbit(bitmap[i])
NextPrime(p)
i = 0
while(p != maxp OR UserInterrupt)
END
parts I've left out. As I continue to develop this code I will be sure to keep anyone who's interested posted on my progress. And again, I'd like to give my thanks to the Doc ![]() Last fiddled with by beyastard on 2009-07-27 at 22:40 |
|
|
|
|
|
|
#44 |
|
Jul 2009
100012 Posts |
I noticed an error in my pseudocode.
If k = 2 then p-1 becomes (p-1)/2 Code:
// begin sieve
do
if(k1*b2^n2+1 % p)
setbit(bitmap[i]) // composite
// remove all remaining candidates that share factor
while(i <= maxn)
if(k == 2)
i += (p-1)/2
else
i += p-1
setbit(bitmap[i])
NextPrime(p)
i = 0
while(p != maxp OR UserInterrupt)
speed it up by getting rid of cmp and jxx instructions as all are composite. |
|
|
|
![]() |
| 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 |