#include<iostream.h>
#include<conio.h>
void main()
{
int a[5],i,j,b,c=0;
cout<<"Enter elements of the array:"<<endl;
for(i=0;i<5;i++)
{
cout<<"Enter element no."<<i+1<<": ";
cin>>a[i];
}
for(i=0;i<5;i++)
{
if(a[i]==2)
c++;
else
{
b=0;
for(j=1;j<=a[i];j++)
if(a[i]%j==0)
b++;
if(b==2)
c++;
}
}
cout<<"The number of prime numbers are: "<<c;
getch();
}