HELP!(LOOP AND FUNCTION)

a) Implement the function checkPrime(int n) that returns 1 if integer n is a prime number, and 0 otherwise

b) Implement the function checkTwin(int n) that returns 1 if (n, n+2) is a twin number, and 0 otherwise.
what you got so far?
i figured it out thanks!
Topic archived. No new replies allowed.