Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n,x,i,c;
  5. scanf("%d",&n);
  6. for(i=1; i<=n; i++)
  7. {
  8. c=0;
  9.  
  10. scanf("%d",&x);
  11. for(i=1; i<=x; i++)
  12. {
  13. if(x%i==0)
  14. c++;
  15.  
  16. }
  17. if(c%2!=0)
  18. printf("Yes\n");
  19. else
  20. printf("No\n");
  21. }
  22.  
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement