#include<stdio.h> #include<math.h> int main(){ int n; int j=1; while(scanf("%d",&n)!=EOF){ int i; int flag =1; for(i=2;i<=sqrt(n);i++){ if(n%i==0){ flag=0; break; } } if(flag!=0){ printf("Case #%d: I'm richer than any one\n",j); } else printf("Case #%d: What a fxcking day\n",j); j++; } } |
Double click to view unformatted code.