def is_prime(number, divisor=2):
if number <= 1:
return False
if divisor == number:
return True
if number % divisor == 0:
return False
return is_prime(number, divisor + 1)
num = int(input("Enter a number: "))
if is_prime(num):
print(f"{num} is a prime number.")
else:
print(f"{num} is not a prime number.")
#source code --> clcoding.com