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

The file containing the my_find_prime_sup function. More...

#include "my.h"

Functions

int my_find_prime_sup (int nb)
 Returns the next prime number after a number (nb)
 

Detailed Description

The file containing the my_find_prime_sup function.

Author
Nicolas TORO

Function Documentation

◆ my_find_prime_sup()

int my_find_prime_sup ( int nb)

Returns the next prime number after a number (nb)

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