Advertisement
Aleks_Basher

Поляков 5320

Sep 19th, 2023 (edited)
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. x = 0
  2. value = 5**2026 + 7*5*1013 + 107
  3. while(True):
  4.     new_value = value - x
  5.     inSix = ""
  6.     while new_value>0:
  7.         inSix = str(new_value%6)+inSix
  8.         new_value = new_value // 6
  9.     if inSix.count("5") == inSix.count("0")+28:
  10.         print(x)
  11.         break
  12.     x = x + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement