Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char **argv){
- int count,i,j;
- i=1;
- while(++i<=1967){
- j=1;
- count=0;
- while(++j<=i){
- if(i%j==0){
- count++;
- }
- }
- if(count==1){
- printf("%d, ",i);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement