A prime number is a number greater than one that is not the product of two smaller natural numbers. A composite number is a natural number greater than 1 that is not prime.

```
num = 50
flag = False
if num > 1:
for i in range(2, num):
if (num % i) == 0:
flag = True
break
if flag:
print(num, "Its Not a Prime Number")
else:
print(num, "Is Not a Prime Number")
```

Output:

50

Its Not a Prime Number

C++ Program for Fibonacci Series Using Recursion

C Program for Sum and Average of n Numbers

Merge Sort in C Program With Output

C Program to Concatenate String Without Using Strcat

C Program to Check Armstrong Number Using For Loop

Swapping of Two Numbers in Java Using XOR

Sum of Two Numbers Using Recursion Java

Java Program to Reverse a Given Number Using Recursive Function