#include <stdio.h>
int ft_is_prime(int nb)
{
int i = 2;
while (i < nb / 2)
{
if (nb % i == 0)
return (0);
i++;
}
return (1);
}
int main() {
printf("%d\n", ft_is_prime(9));
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: