Completed Project Euler problems 35 and 36 with ~1.7s and ~0.7s runtimes respectively