I am new to Python and I'm attempting to write a code that checks to see whether or not a number is prime. So far, I've written this:

```
def main():
     n = input("Enter number:")
     isprime(n)

def isprime():
    x = Prime
    for m in range (1,n+1,1)
        result = n % m
        print result

main()

```

I'm not sure how to proceed after this. I know I have to define *isprime*. Any help would be greatly appreciated. Thank you!