11-09-2005 07:58 PM
And the new leader is.... Ben (bsquared) with a time of 84 msec.
Bruce
11-10-2005 01:38 AM
11-15-2005 01:32 PM
@Bruce Ammons wrote:
And the new leader is.... Ben (bsquared) with a time of 84 msec.
Bruce
Well, I guess Pollard's method (ok, Brent's improvement) isn't the fastest after all. I had concentrated on it because I had already implemented it in C and knew how it worked fairly well, but couldn't do any better than ~1200ms. The result above is an algorithmic improvement to something I had considered before and was prompted to return to by Franz
. I don't think I can make Brent's method go any faster - or at least I'm unwilling to invest any more effort in it. Optimization of this method on the other hand... maybe there's still room for improvement...
For those that are interested, I also implemented this in C. It ran ~20% faster: 47ms vs. 61ms (on my 3.8GHz P4). But more could definately be done to make the C code more efficient
- ben.
11-18-2005 09:57 AM
11-18-2005 12:45 PM
I will take anything you think is cool as a submission. If you have a really fast way to generate the prime numbers with a few extras, that sounds reasonable. In your code, put comments about why you think your code excels in a particular area (speed, memory usage, efficiency, etc.) After judging all the entries, I will probably talk about the cool stuff in the different methods.
You can store your prime numbers as a bit table, but you have to be able to retrieve them from the table to do the trial division. Does that answer your question?
Bruce
11-28-2005 07:28 PM
Okay folks, we are getting down to the wire. This Friday is the deadline for the challenge!!! Please submit your solutions by midnight Friday.
During this week, I will not be posting any times. No more results will be posted until I have the final results.
Please remember to put lots of comments in your code so I can figure out what you did.
Thanks,
Bruce
12-02-2005 03:02 AM
12-02-2005 08:05 AM
Similarly for me Shane.
I will document what I have and submit it.
It was fun.
01-09-2006 04:57 AM
01-09-2006 01:09 PM
Sorry, I got swamped by a project deadline and didn't have time to work on the coding challenge results. It also took a little work to get the entries that were directly submitted to NI. I have everything I need now, though, and I have a little time. I should be able to post the results within a couple of days.
Bruce