Completed Project Euler problem 49 with a ~0.76s runtime. There's probably a much better way to do this. I'll come back with a less brute force solution later.