Indivisible Numbers
You are given a positive integer
The first line of input is an integer
The output should be an integer representing the number of positive integers satisfying the above condition.
In the given example,
11 is not divisible by any number from 2 to 10. It is divisible by only 1, 11.So, the output should be
2.
N=int(input("Enter a positive integer: "))
find=0
for K in range (1,N+1):
if (N%K==0):
find +=1
print(find)
Comments
Leave a comment