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