Project Euler : Problem #87 : Prime Power Triples