Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is my comments & Code:
- #include<stdio.h>
- int main()
- {
- int i,j;
- for(i=2;i<=50;i++)
- {
- int status = 0;
- for(j=2;j <= i/2;j++)
- {
- if(i%j == 0)
- {
- status = 1;
- break;
- }
- }
- if(status == 0) printf("\t %d",i);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement