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