My approach on project euler problems, somewhat with tdd in python