示例#1
0
def main():
    num = int(input("Enter an integer: "))
    if is_prime(num):
        print(num, "is prime")
    else:
        print(num, "is NOT prime")
示例#2
0
def main():
    num = int(input("Enter the number: "))
    if is_prime(num):
        print(num, "is a Prime Number")
    else:
        print(num, "is not a Prime number")
import primecode

num = int(input("Enter an integer: "))
if primecode.is_prime(num):
    print(num, "is prime")
else:
    print(num, "is NOT prime")
示例#4
0
from primecode import is_prime

num = int(input("Enter an integer: "))
if is_prime(num):
    print(num, "is prime")
else:
    print(num, "is NOT prime")