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