Uncommon Number
Given a number
The first line of input is an integer
The output should be a single line containing
In the given example,
N = 5633 the number is not divisible by 2, 3, 5, 7. So, the number is an uncommon number.Therefore, the output should be
True.
n = int(input())
common = True
for i in (2, 3, 5, 7):
if (n%i) == 0:
common = False
break
print(common)
Comments
Leave a comment