예제 #1
0
import number_checker as n

print(n.is_prime(2), n.is_even(3))
예제 #2
0
import number_checker

n = int(input("ENTER NUMBER \n"))
number_checker.is_even(n)
number_checker.is_prime(n)
예제 #3
0
import number_checker
num = 23
if (number_checker.is_prime(num)):
    print("Number is prime")
else:
    print("Number is not prime")
if (number_checker.is_even(num)):
    print("Number is even")
else:
    print("Number is odd")

# OUTPUT
# Number is prime
# Number is odd
예제 #4
0
import number_checker
num = int(input("Enter a number for checking: "))
print("")
print("Let's check whether number is prime or not")
print("Is prime?:", number_checker.is_prime(num))
print("")
print("")
print("Let's check whether number is even or not")
print("Is even?:", number_checker.is_even(num))