wish helps you So this function is just supposed to return 0 if not prime and 1 if prime. Am I seeing something wrong? for example, when I give it 39, it says it returns 1 although 39 is not a prime. , In this loop

code :

```
for(loop_counter ; loop_counter < number ; loop_counter++){
```

```
int is_prime( unsigned int n )
{
int prime = n % 2 == 0 ? n == 2 : n != 1;
for ( unsigned int i = 3; prime && i <= n / i; i += 2 )
{
prime = n % i != 0;
}
return prime;
}
```

```
int prime = n % 2 == 0 ? n == 2 : n != 1;
```

```
for ( unsigned int i = 3; prime && i <= n / i; i += 2 )
^^^^^^
```

```
prime = n % i != 0;
```

```
for ( unsigned int i = 3; prime && i <= n / i; i += 2 )
^^^^^
```

```
for ( unsigned int i = 3; prime != 0 && i <= n / i; i += 2 )
^^^^^^^^^^
```