isprime or composite number

Run Settings
LanguagePython
Language Version
Run Command
def isprime(num): count=0 for x in range(2,num): if num%x==0: count+=1 if count<=0 and num!=1: print("Prime number") elif count>=1 and num!=1: print("Composite Number") else: print("Some other number") isprime(10)
Editor Settings
Theme
Key bindings
Full width
Lines