mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2004-10-16, 12:12   #12
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

481810 Posts
Default

Quote:
Originally Posted by synergy
It is just a different way of looking at it, the sieve of Aristothenes works the same way, if it isn't crossed out it is output as a prime, if it is crossed out it is not output and is a composite - my method just crosses them out right from the start.
Consider how many composites you have looked at before finding a large prime. If you could eliminate that stage, is there really any way you could say that it wouldn't be more efficient at finding primes, in terms of hours?
If you are working on a sieve, then maybe you'll find useful reading about sieve algorithms: apart from Erarthostene's, there are other much more efficient methods like quadratic sieve or nfs. These methods work alot faster, and you'll find their implementation useful to compare your method.

Try page 389-391, 402-403, 412 and 416 of Knuth's The art of computer programming for efficiency of sieves.

Luigi
ET_ is online now   Reply With Quote
Old 2004-10-20, 15:32   #13
synergy
 
Aug 2004

2·3·7 Posts
Default

Thanks, Luigi, I'll check it out. Sorry it took me so long to respond, I was on fall break.
Aaron
synergy is offline   Reply With Quote
Old 2004-10-21, 12:33   #14
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2×3×11×73 Posts
Default

Quote:
Originally Posted by synergy
Thanks, Luigi, I'll check it out. Sorry it took me so long to respond, I was on fall break.
Aaron
I forgot to tell you... the information is on Volume 2 of TAOCP.

Luigi
ET_ is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
prime generator for f(n)=n^2+1 bhelmes Miscellaneous Math 2 2016-03-17 17:50
Feature clarification: LowMemWhileRunning JuanTutors Software 6 2012-11-15 05:00
Question of efficiency: Test VS Generator synergy Miscellaneous Math 13 2004-10-14 18:14
New prime test (or generator) synergy Miscellaneous Math 39 2004-09-21 17:10
Prime Number Generator Unregistered Programming 6 2004-03-21 01:00

All times are UTC. The time now is 15:03.


Mon Aug 2 15:03:23 UTC 2021 up 10 days, 9:32, 0 users, load averages: 3.16, 3.14, 3.32

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.