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