prime number program doubt.

Q1 for(i=2;i<=num/2;++i) //what does this full thing means???
If(num%i==0)
this is the code from which u can find whether number is prime or not,but what is the meaning of the full for statement???
its checking if any number i between 2 and num/2 is a divisor of num, because prime numbers have only 2 divisors ( itself and 1) so if you can find another number which is a divisor of num, your proving that num is not a prime.
Thanks
Topic archived. No new replies allowed.