Advertisement
BERKYT

Ex3_Python

Jun 4th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #Каков самый большой делитель числа 600851475143, являющийся простым числом?
  2.  
  3. dividend = 6851475
  4. simple_divider = 2
  5. list_dividers = []
  6.  
  7. while simple_divider < dividend:
  8.     if dividend % simple_divider == 0:
  9.         list_dividers.append(simple_divider)
  10.     simple_divider += 1
  11.  
  12. print(list_dividers[len(list_dividers) - 1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement