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. More... | |
void | test () |
Test function. More... | |
int | main () |
Driver Code. More... | |
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.