Adding project euler #29: distinct powers