allow for repeated prime factors