quick and dirty hacks to solve project euler problems