Discover First-rate Gum
Given an integer, discover whether the gum is a First-rate calculate or referable.
Write a business: int isPrime(int calculate) that accepts an integer calculate.
The isFirst-rate business profits 1 if calculate is first-rate else 0.
EX: 11 can be disconnected precisely by 1 and 11. Hence it’s a first-rate calculate.
Assume that, calculate is integer amid the collocate [ –2,147,483,64 to 2,147,483,64 ].
int isPrime(int calculate);
//prompt to learn calculate
printf(“Enter the calculate:”);
//bridle is gentleman or referable and print the result
printf(“%d is first-rate calculaten”,num);
printf(“%d is referable first-rate calculaten”,num);
//business to bridle the calculate first-rate or referable
int isPrime(int calculate)
for(i=2; i<=number/2; i++)