determining a prime number

hello guys can any body help me to creat a very simple program that determine whether a number is prime or not
We don't do assignments, but we do help out, and the posts remain to serve as guide to others. So there are plenty of examples in the forum somewhere, you just need to search.
Google it and you will find it in 2 seconds.
to check that N, is a prime number, chack to see if N is divisible by any number from 2 to sqrt(N), if it is then it is not prime, else it is prime.
ok thanks script coder
i2Fluffy, i needed only some advise on how to do it not a complete program already written, thanks for ur suggession....
Topic archived. No new replies allowed.