Skip to content

Instantly share code, notes, and snippets.

@starkcoffee
Created November 6, 2020 22:26
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 starkcoffee/58abf54bea5a3d97344140ae6840e2f1 to your computer and use it in GitHub Desktop.
Save starkcoffee/58abf54bea5a3d97344140ae6840e2f1 to your computer and use it in GitHub Desktop.
Check answer to Conway's 'Digital Perfection' Puzzle
# https://www.quantamagazine.org/three-math-puzzles-inspired-by-john-horton-conway-20201015/
# via Larene
# answer = YOUR_ANSWER
not False in [ n % (i+1) == 0 for i, n in enumerate([ (answer // 10**(9-i)) for i in range(10)])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment