Header Ads

Learn Together, Stay Connected.

ছোট মৌলিক সংখ্যা-C


#include <stdio.h>
#include<math.h>
int main()
{
int y,i,count=0;
scanf("%d",&y);
for(i=2;i<y;i++)
{
if(y%i==0)
{
count++;
}
}
if(count==0 && y!=1)
{
printf("YES");
}
else
{
printf("NO");
}
return 0;
}

No comments

Theme images by Dizzo. Powered by Blogger.