int main(int argc, const char * argv[]) {
int a=241,i,x;
for (i=2; i<=a/2; i++) {
x=a%i;
if (x==0) {
NSLog(@"not prime");
}
}
NSLog(@"prime");
return 0;
}
Sign up here with your email
ConversionConversion EmoticonEmoticon