Meme to myself: don't try to solve Euler problems late at night ;(