PDA

View Full Version : anyone here need help with math?


salsbury
10-23-2001, 10:40 AM
look no further than
http://members.surfeu.fi/kklaine/primebear.html

mxmx
10-23-2001, 11:05 AM
An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself. For example, the prime divisors of 10 are 2 and 5; and the first six primes are 2, 3, 5, 7, 11 and 13

mxmx
10-23-2001, 11:12 AM
Originally posted by salsbury:
<STRONG>look no further than
http://members.surfeu.fi/kklaine/primebear.html</STRONG>

number one is not prime

subog
10-23-2001, 02:24 PM
Why not 1 when it can be divided by 1 and 1 LOL

The Chosen
10-23-2001, 04:49 PM
yeah mxmx is right but it's very cool way to learn math though :D

mxmx
10-23-2001, 05:35 PM
Originally posted by subog:
<STRONG>Why not 1 when it can be divided by 1 and 1 LOL</STRONG>
http://www.utm.edu/research/primes/notes/faq/one.html

leroy_black
10-23-2001, 05:44 PM
Hmm, interesting link. I just had to write a prime number generator for my c programming course, and I was wondering why 1 wasn't considered a prime. I had another problem though...writing a (reasonably fast) algorithm that calculates 2 as a prime is pretty damn tough too. Actually, I never did figure out how to include 2 in it either.

mxmx
10-23-2001, 06:13 PM
Originally posted by Leroy Black:
<STRONG>Hmm, interesting link. I just had to write a prime number generator for my c programming course, and I was wondering why 1 wasn't considered a prime. I had another problem though...writing a (reasonably fast) algorithm that calculates 2 as a prime is pretty damn tough too. Actually, I never did figure out how to include 2 in it either.</STRONG>
http://www.freevbcode.com/ShowCode.Asp?ID=1201

leroy_black
10-23-2001, 06:16 PM
Bleh, I said reasonably fast . ;)

That one calculates the first 100,000 primes on a 500mhz processor in 56 minutes. Mine can calculate the first 100,000 (minus 2) primes in about 1 or 2 minutes on a 500mhz celeron.

VB sucks arse. :)