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