number = int(input('enter number:'))
iscomposite = 0
for i in range(2,number):
    if(number%i ==0):
        isconposite = 1
        break
if(iscomposite == 1):
    print("number is composite")
else:
    print("number is prime")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: