Is Prime
Lesson 10 of 20 in Coddy's Beginner Challenges - Practice Basic Concepts course.
Challenge
EasyWrite a function named isPrime that gets an integer num and returns true if num is a prime number otherwise false.
Try it yourself
#include <stdbool.h>
bool isPrime(int num) {
// Write code here
}