Adding project euler #47: distinct prime factors