Python Program to check if the number is prime or composite number
Write a python program to input a number and check if the number is prime or composite number using nested if-else loop This python program for Prime and composite number allows the…