We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Look at it this way. A number has some prime factors, if factors are repeating they are shown as powers.
Example 36 = [2,2,3,3] which you can represent as 2^2 * 3^2, it is 2 distinct factors
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #47: Distinct primes factors
You are viewing a single comment's thread. Return to all comments →
Look at it this way. A number has some prime factors, if factors are repeating they are shown as powers.
Example 36 = [2,2,3,3] which you can represent as 2^2 * 3^2, it is 2 distinct factors