Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.80K
~488 People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
1 Posted Topic
This program should solve your problem. [code]#include<stdio.h> #include<conio.h> void main() { int n,i,c=0; printf("enter the number:"); scanf("%d",&n); for(i=1;i<=n;i++) { if(n%i==0) { c=c+1; } } if(c==2) printf("number is prime\n"); else printf("number is not prime\n"); n=n-1; while(n >= 1) { c=0; for(i=1;i<=n;i++) { if(n%i==0) c=c+1; } if(c==2) printf("This number is prime %d\n",n); …
The End.
fearfact_53