- #36
abertram28
- 54
- 0
let me refine the light of the context of my statement. obviously there are trivial solutions. its meaningless as a generator to use the algorithm "2" to generate primes.
the context was the generation of primes. if an algorithm tests for primality, reguardless of its method, it isn't generating primes, but generating numbers which may be prime. then the test is a second algorithm. to include a primality test in an algorithm for generating primes is pretty meaningless. any algorithm that tests for primality is automatically a "prime generating algorithm" according to you. well, it might be, but its a useless one, as it is neither fast nor easy.
so, just because one has a method for testing primes, in my humble opinion, does not give a prime number generator. the number generating portion of the algorithm is all that's concerned when the words NUMBER GENERATING ALGORITHM are used. NOT a number testing algorithm. the generating portion of all of these algorithms is NOT producing strictly primes, in any form. if the generation portion has the capability of producing a composite number, the generator isn't a prime number generator, but a prime canidate generator. if you want to say that a 'generating' algorithm is one that includes a 'testing' algorithm, go right ahead. generally, i said there are no algorithms that always give primes. in context, i meant useful ones that don't involve actual testing of a large portion of the generated numbers, that is, numbers generated by the generator portion of the algorithm, or the generator algorithm. i should have said that there are no generation algorithms for primes. because there arent. only testing ones. if one combines both, it still relies on testing primality, which isn't an easy task. generation algorithms would not eliminate any generated number as being composite. can you name any algorithm that doesn't directly test a number for primality? algorithms that involve testing, to me, are composite algorithms, using two very separate algorithms, the generators and the testers. the two need not be connected. any generator could be used with any testing algorithm, and so, i see them as seperate. that's what i meant by calculate prime, not just 'find' a prime. brute force solutions are for babies.
the context was the generation of primes. if an algorithm tests for primality, reguardless of its method, it isn't generating primes, but generating numbers which may be prime. then the test is a second algorithm. to include a primality test in an algorithm for generating primes is pretty meaningless. any algorithm that tests for primality is automatically a "prime generating algorithm" according to you. well, it might be, but its a useless one, as it is neither fast nor easy.
so, just because one has a method for testing primes, in my humble opinion, does not give a prime number generator. the number generating portion of the algorithm is all that's concerned when the words NUMBER GENERATING ALGORITHM are used. NOT a number testing algorithm. the generating portion of all of these algorithms is NOT producing strictly primes, in any form. if the generation portion has the capability of producing a composite number, the generator isn't a prime number generator, but a prime canidate generator. if you want to say that a 'generating' algorithm is one that includes a 'testing' algorithm, go right ahead. generally, i said there are no algorithms that always give primes. in context, i meant useful ones that don't involve actual testing of a large portion of the generated numbers, that is, numbers generated by the generator portion of the algorithm, or the generator algorithm. i should have said that there are no generation algorithms for primes. because there arent. only testing ones. if one combines both, it still relies on testing primality, which isn't an easy task. generation algorithms would not eliminate any generated number as being composite. can you name any algorithm that doesn't directly test a number for primality? algorithms that involve testing, to me, are composite algorithms, using two very separate algorithms, the generators and the testers. the two need not be connected. any generator could be used with any testing algorithm, and so, i see them as seperate. that's what i meant by calculate prime, not just 'find' a prime. brute force solutions are for babies.
Last edited: