So what have you been able to figure out so far?

Nothing really becuase this is only my 3rd time doing programming. The first two were just using couts and cins like ansering questions for a program. Im not sure how to use numbers. I tried this program for part a which is decison to be made if a given number is prime.

#include <iostream>

using namespace std;

int isprime(int Prime_Number);

int main()

{

int Number = 0;

cout<<"Enter a number"<<endl;

cin>>Number;

if(Number>0)

{

if(isprime(Number)==0)

{

cout<<"Number is prime"<<endl;

}

else

{

cout<<"Number is not prime"<<endl;

}

}

else

{

cout<<"Positive numbers only"<<endl;

}

return 0;

}

int isprime(int Prime_Number)

{

//prime number calculation here

}