Faster problem 12, started problem 13