JavaScript basic: Find all distinct prime factors of a given integer ...

JavaScript basic: Find all distinct prime factors of a given integer ...