Advertisement
Md_hosen_zisad

pb4

Oct 30th, 2017
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i, a,b,count;
  5. seive();
  6. while(1)
  7. {
  8. scanf("%d %d",&a,&b);
  9. if(a=0 && b==0)
  10. break;
  11.  
  12. count=0;
  13. for(i=a;i<b;i++)
  14. {
  15.  
  16. if(prime[i]==1)
  17. {
  18. count++;
  19. }}
  20.  
  21. printf("%d",count);}
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement