Created
August 5, 2020 21:50
-
-
Save MikulasZelinka/f1673b012be06b5584695dadf7043083 to your computer and use it in GitHub Desktop.
MPMP: The Marching Band Problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python one-liner solution to https://www.youtube.com/watch?v=5GZ5IqxAt30 | |
print(next(x for x in range(1_000_000) if len([y for y in range(1, x + 1) if x % y == 0]) == 64)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment