Hi, I am taking a class in computer programming (it just started so I don't know much).
I need to write a function bool function that determines if a number entered by the user is prime, and a driver program for it. My problem now is that it keeps saying all numbers i enter are prime. If you have any suggestions that might be helpful I would appreciate them.
here is what i have so far:
// A function deciding if a number is prime
#include <iostream>
using namespace std;
//Determine if a positive interger is prime
bool isprime (int number)
{
int count=2;
int num;
num = number;