#include <iostream.h>
#include <conio.h>
int main ()
{
int array[10], i,c,p;
int count = 0;
cout<< " Enter integer numbers: " ;
for(i=0; i<10; i++)
{
p = 1;
for (c = 2; c <array[i]/2; c++)
{
if (array[i]%c == 0)
p = 0;
break;
}
if (p == 1)
count++;
count++;
}
cout<< " Total numbers of prime numbers in the array is : " <<count;
return 0;
}
hehehehehehehehehehe
ReplyDelete