This program is short and sweet. All you have to do is enter a number and it will tell you if it is a prime or not a prime. Works with pretty high numbers.
Want to Download the Program?
This is the Code for The Program.
#include
#include "iostream.h"
bool prime(long num, bool & check);
int main(void)
{
long num;
bool check=false;
while(100){
cout<<"Enter in a positive integer ";
cin>>num;
cout<