Finding Prime numbers@ Tej Samara: I like ur code, if count==2 when loop is finished it means it's prime (number is div...
Finding Prime numbersTo Volatile Pulse: are you sure? I did compile it before posting and it says 4 is not prime. But yo...
Finding Prime numbersHi, I also wrote another program that checks if a number is prime or not. Most programs use the % op...
Finding Prime numbersI got where the problem is. The "number%i" operation sometimes gets 0, but doesn't get 0 most of the...
Prime Number Function?The majority of prime number listing programs use the % operator for testing, I thought I would writ...
This user does not accept Private Messages