0

Hi im writing a program that returns whether an inputted number is prime or not, but Im kind of stuck...

```
import math
def listfactors(n): # defining the function
l = []
for i in range (1, int(math.sqrt(n))+1):
if float(n)/float(i) == int(float(n)/float(i)):
l.append(i)
l.append(n/i)
return l
primeNum = int(raw_input("Enter number here:"))
if listfactors(primeNum) =
print "prime"
```

Now thats what I have so far but its not working and I was wondering if anyone could help point out my mistake and help me fix the last 2 lines.

Thank you :)