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