Hey guys i've been trying to program this question from a past year competition. The question is : A prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. The first prime number is 2. Can you write...
<div>Hey guys i've been trying to program this question from a past year competition. The question is :
A prime number is a natural number which has exactly two distinct natural number divisors:
1 and itself. The first prime number is 2. Can you write a program that computes the nth prime
number, given a number n >prime;
ofstream write;
write.open("C:\\Users\\User\\Documents\\answer.txt ");
int num[100], b, c;
bool check;
b=0;
switch(prime)
{
case 1: {write