Re: Prime Candidates
From: Dan (30pack_at_sbcglobal.net)
Date: 06/23/04
- Next message: Hagen: "James Harris' object ring"
- Previous message: Gerry Myerson: "Re: Another twin primes conjecture"
- Maybe in reply to: vernonner3voltazim: "Prime Candidates"
- Next in thread: vernonner3voltazim: "Re: Prime Candidates"
- Reply: vernonner3voltazim: "Re: Prime Candidates"
- Reply: Dave Rusin: "Re: Prime Candidates"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 01:28:41 +0000 (UTC)
On 22 Jun 2004, vernonner3voltazim wrote:
>When generating a series of numbers to test for primality,
>it would be nice to have a way to avoid generation of as
>many numbers as possible that cannot possibly be prime.
>I have proposed a simple algorithm here:
>http://www.halfbakery.com/idea/Prime_20Candidates#1087930489
>I will not be in the least surprised it this is widely
>known among number theorists. But maybe it isn't.
>(Or, maybe it has been discovered multiple times, and
>immediately sneered and ignored and never published.
>I wouldn't be surprised at that, either!)
>
>Let me know, please!
>Thanks in advance!
It seems like you are making this process all to difficult.
I did a simple basic program that uses the method below in
an algorithm to find all primes in a given range (n) from prime
7--->n.
Just add and keep repeating this sequence ---->oo
7+
4+2+4+2+4+6+2+6
+4+2+4+2+4+6+2+6
+4+2+4+2+4+6+2+6
+4.. etc.
At any point of these summations of integers, they are either prime
or have prime factors =>7.
So for finding primes in a range of integers from 7 ---> n it uses
about 26.66..% of all integers in that range.
The least integers needed in that range to test for their primality!
The larger the n the more (6)s will be added to this decimal
expansion of the percentage.
There are much more sophisticated and faster ways to find primes but
this is the easiest sieve to construct which automatically
eliminates all even integers and all 0(mod 3) and 0(mod 5) that are
composites >7.
Primes 2,3 and 5 are not included in this footprint. Prime 7 is used
to start the initial summing process.
Dan
- Next message: Hagen: "James Harris' object ring"
- Previous message: Gerry Myerson: "Re: Another twin primes conjecture"
- Maybe in reply to: vernonner3voltazim: "Prime Candidates"
- Next in thread: vernonner3voltazim: "Re: Prime Candidates"
- Reply: vernonner3voltazim: "Re: Prime Candidates"
- Reply: Dave Rusin: "Re: Prime Candidates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|