I wrote two versions of code.

First:

```
def is_prime(x):
if x >= 2:
for i in range(2,x):
if x % i == 0:
return False
else:
return True
else:
return False
```

Second:

```
def is_prime(x):
for i in range(2,x):
if x % i == 0:
return False
else:
return True
```

what am I doing wrong?