Monday, April 1, 2013

project euler problem 087

Prime power triples

This problem is simple.We can compare it with problem 86.

problem 86: solved by 5155.
problem 87: solved by 8745.

There is not too much to say about this problem. I compared the efficiency of set with unordered_set. I do not want to create a large vector. With set, it takes 0.62sec. With unordered_set, it takes 0.44sec.

No comments:

Post a Comment