Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import factorial
- results = {}
- n = 1
- while True:
- if factorial(n) < 4000000:
- results[n]=factorial(n)
- n += 1
- else:
- break
- max_key = max(results)
- max_value = results[max_key]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement