Question : https://cses.fi/problemset/task/2417
I tried to find out the prime factors of all the numbers and then iterated over the loop and for every factor I tried