Re: Direct calculation of Primes - Possible?



Chris Mattern <syscjm@xxxxxxxxxxxxxxxxxx> wrote:
Nick, if a method for generating primes directly interests you, I
suggest you get the book from http://calculateprimes.com and verify for
yourself that it works. It's clear that the algorithm generates primes,
but the questions of whether it generates all primes and only primes remain
to be proven AFIK.
*Snerk*. So it throws out primes, but you don't know if it *only*
throws out primes, or if it gets all primes. In other words, it's
worthless.

I've a small algorithm, too, which "generates primes, but perhaps
generates not all primes and maybe not only primes":

for (int i=1; i++; )
printf("maybe a prime: %d\n", i);

Hey, it's even better:

it _provably_ generates _all_ primes!!1!11 (Integer overflow? What do
you mean by that? ;-)

SCNR,
VB.
--
"Terror eignet sich mehr als irgendeine andere militärische Strategie dazu,
die Bevölkerung zu manipulieren."
(Dr. Daniele Ganser, 2005)
<http://www.auchdieserschwachsinnmussinsinternet.de/>
.