count prime: b. Write a function is_prime() which determines if a number is prime. The function has one integer parameter. The function returns true if the input parameter is prime and false otherwise.A number a is prime if and only if (a mod b ≠ 0) for b = 2, 3, ..., (a − 1) // FUNCTION PROTOTYPE FOR is_prime // DEFINE FUNCTION is_prime() HERE:
Get Free Quote!
324 Experts Online