Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #25 https://kpolyakov.spb.ru/school/ege/gen.php?action=viewVar&answers=on&varId=4
- for x in range(800001, 801001):
- deli = []
- for d in range(2, int(x**0.5) + 1):
- if x % d != 0:
- continue
- if d != 9 and d % 10 == 9:
- deli.append(d)
- p = x // d
- if p != 9 and p % 10 == 9:
- deli.append(p)
- if len(deli) != 0:
- print(x, min(deli))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement