Advertisement
Guest User

python

a guest
Sep 23rd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. varA = int(input())
  2. varB = int(input())
  3. mass = []
  4. i = 0
  5. total = 0
  6. min = 10000
  7.  
  8. while i<varB-1:
  9.     mass.append(varA+i)
  10.     i += 1
  11. for n in mass:
  12.     c = 0
  13.     a = n
  14.     while a > 0:
  15.         if (n % a == 0):
  16.             c += 1
  17.         a -= 1
  18.     if c == min:
  19.         total += 1
  20.     if c < min:
  21.         total = 1
  22.         min = c
  23. print('TOTAL : {}\nDELITEL : {}'.format(total, min))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement