#include<stdio.h> #include<conio.

h> void main() { int n; int i; int j; clrscr(); printf("enter the number") ; scanf("%d",&n); for (i=2;i<n;i++) { j=n%i; if(j==0) printf("Its Not Prime"); } printf("Its Prime"); getch(); }

Sign up to vote on this title
UsefulNot useful