Skip to content

Instantly share code, notes, and snippets.

@Threadmonkey
Threadmonkey / mostRoundBirthday.py
Created Aug 29, 2018
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!
View mostRoundBirthday.py
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 = []
You can’t perform that action at this time.