Sponsored
Use these hints if you're stuck. Try solving on your own first.
You can count the number of divisors and just check that they are 3
Beware of the case of n equal 1 as some solutions might fail in it
Solve with full IDE support and test cases