Skip to content

Instantly share code, notes, and snippets.

@Threadmonkey
Threadmonkey / mostRoundBirthday.py
Created August 29, 2018 21:28
Print the number of zeros for the years from 0 to 128 in the number systems from base 2 to base 128. Guess which Birthday has the most zeros!
import math
# Definition
class YearZeros:
year = 0
zeros = 0
base = set() # Store the year inf form of 'all' (2 to 128) bases here. E.g. year 4 would be
# Declaration
result = []