prime number is only divisible by 1 and number itself http://www.tutorial4us.com/cpp-program/cpp-prime-number-program prime number program in c++