Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //p1
- m,n = map(int, input().split())
- a = m
- p = a
- for i in range(m, n+1):
- w = 0
- for q in range(1, i):
- if (i % q ==0):
- w = w +1
- if (w <= p):
- p = w
- a = i
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement