Can anyone help me look at my code? It's not working. Thank you!!!

```
def is_prime(x):
listnumber=[]
n=x
while n>2:
n=n-1
listnumber.append(n)
return listnumber
for i in listnumber:
if x%i ==0:
return False
else:
return True
print is_prime(10)
```