42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_find_prime_inf.c File Reference

The file containing the my_find_prime_inf function. More...

#include "my.h"

Functions

int my_find_prime_inf (int nb)
 Returns the previous prime number before a number (nb)
 

Detailed Description

The file containing the my_find_prime_inf function.

Author
Nicolas TORO

Function Documentation

◆ my_find_prime_inf()

int my_find_prime_inf ( int nb)

Returns the previous prime number before a number (nb)

Parameters
nbThe number to check
Returns
int The previous prime number before the number or the number if it is prime
Author
Nicolas TORO