View Code of Problem 119

#include<stdio.h>
int main(){
long int n,i;
int k=1;
while(scanf("%ld",&n)!=EOF){
	if(n==1) printf("Case #%d: I'm richer than any one\n",k++);
	else{
	for(i=2;i<n;i++){
	  if(n%i==0) break;
	}
	if(i==n) 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.


Back to problem 119