You either write a naïve brute-force solution and just filter the first 10000 numbers by the number of their divisors and if you are a little bit into numbers will spot the pattern immediately or you try to construct the prime factorization of number which only allows to combine 3 divisors.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You either write a naïve brute-force solution and just filter the first 10000 numbers by the number of their divisors and if you are a little bit into numbers will spot the pattern immediately or you try to construct the prime factorization of number which only allows to combine 3 divisors.