#Credits to NPTEL MOOC, Programming, Data Structures & Algorithms in 
#Python by Madhavan Mukund, Chennai Mathematical Insti
tute 
 
def composite(n):
for i in range(2,n):
if n%i == 0:
return(True)
return(False)

Source link

Check wheather a number is composite or not

Leave a Reply

Your email address will not be published. Required fields are marked *