06-03-2003, 09:15 PM
anyways, it is ok to post it, Mango, since your method and mine are almost identical. But be warned! It won't work for any number greater than (the first prime number before 32767) squared!
google.com: primes: first entry: gives a good fast method of finding primes, but the algorithm is incomplete.
Touf: I was born in Moscow, Russia, but I live in the USA.
google.com: primes: first entry: gives a good fast method of finding primes, but the algorithm is incomplete.
Touf: I was born in Moscow, Russia, but I live in the USA.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Visit www.neobasic.net to see rubbish in all its finest.