hacky Project Euler problems, just for fun