include <stdio.h> int main() scanf("%d",&n); for (i=1;i<=n;i++) { if (n%i==0) else
Standard input is empty
include <stdio.h> int main() { int i,n,count=0 printf("Enter n: "); scanf("%d",&n); for (i=1;i<=n;i++) { if (n%i==0) printf ("%d is a prime.",n); else printf("%d is not a prime.",n);