Uncommon Number
Write a Python program of Uncommon Number. It consists of two test cases
The below link contains Uncommon Number - Question, explanation and test cases
https://drive.google.com/file/d/1jkxCFS8UyRSlxvHFJ95HO_0Tq5JTf5nY/view?usp=sharing
We need all test caese can be come while code was running
N = eval(input('Enter integer here:'))
prime_list = [2,3,5,7]
list1 = []
for i in prime_list:
if N % i == 0:
list1.append(True)
else:
list1.append(False)
if True in list1:
print(False)
else:
print(True)
Enter integer here:5633
True
Enter integer here:1000
False
Comments
Leave a comment