Skip to content

Instantly share code, notes, and snippets.

View mml's full-sized avatar
🕳️

Matt Liggett mml

🕳️
  • Santa Rosa Plain, California Floristic Province
View GitHub Profile
@mml
mml / even_digits.py
Last active December 11, 2024 22:45
Fast even digits
import sys
import timeit
def high_enough(x, lo):
return x < 10*lo
def even_digits(x):
(lo, divisor) = (10, 10)
while not high_enough(x, lo):
lo *= 100