1

Hello guys,

I need some help with a program that finds all the prime numbers from 2 to 10000,here is what I have so far

```
#include <iostream>
using namespace std;
bool prime(int n );
void main ()
{
int n,b;
b=0;
for (n=2;n<=10000;n++)
prime (n);
if ()
{
cout<<n<<endl;
b=b+1;
}
cout <<b;
}
bool prime (int n)
{
int i;
for (i=2;i<=100;i++)
{
if(n%i==0)
return false;
}
return true;
}
```

any help would be much aprreciated ,thanks!