|
Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Program to identify if a number is prime number or not. More...
#include <assert.h>#include <math.h>#include <stdbool.h>#include <stdio.h>Functions | |
| bool | isPrime (int x) |
| Check if a given number is prime number or not. | |
| void | test () |
| Test function. | |
| int | main () |
| Driver Code. | |
Program to identify if a number is prime number or not.
| bool isPrime | ( | int | x | ) |
Check if a given number is prime number or not.
| x | number to check |
true if given number is prime number, otherwise false | int main | ( | void | ) |
| void test | ( | void | ) |
Test function.