My personal attempt at Project Euler