Skip to content

Instantly share code, notes, and snippets.

@MikulasZelinka
Created August 5, 2020 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikulasZelinka/f1673b012be06b5584695dadf7043083 to your computer and use it in GitHub Desktop.
Save MikulasZelinka/f1673b012be06b5584695dadf7043083 to your computer and use it in GitHub Desktop.
MPMP: The Marching Band Problem
# 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