ShriRam Changed status to publish July 15, 2022
#include<stdio.h> void main() { int i=2,r,n; printf("Enter Number :"); scanf("%d",&n); while(i<=n/2) { r=n%i; if(r==0) break; else i++; } if(r==0) printf("Not a Prime Number"); else printf("is a Prime Number"); getch(); }
ShriRam Changed status to publish July 15, 2022