Project Euler #87: Prime power triples