Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_is_prime.c File Reference

The file containing the my_is_prime function. More...

#include "my.h"

Functions

int my_is_prime (int nb)
 Returns 1 if the number (nb) is prime and 0 otherwise.
 

Detailed Description

The file containing the my_is_prime function.

Author
Nicolas TORO

Function Documentation

◆ my_is_prime()

int my_is_prime ( int nb)

Returns 1 if the number (nb) is prime and 0 otherwise.

Parameters
nbThe number to check
Returns
int 1 if the number is prime, 0 otherwise
Author
Nicolas TORO