C++ Program to Check Whether a Number is Prime or NotC++ Program to Check Whether a Number is Prime or Not