Advertisement
T-D-K

Untitled

Apr 26th, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. //p1
  2. m,n = map(int, input().split())
  3. a = m
  4. p = a
  5. for i in range(m, n+1):
  6.     w = 0
  7.     for q in range(1, i):
  8.         if (i % q ==0):
  9.             w = w +1
  10.     if (w <= p):
  11.         p = w
  12.         a = i
  13. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement