Олимпиадный тренинг

Задача 33368. List of divisors - 04


Write a program that searches among the integers belonging to the numerical interval [102438; 124698] numbers that have exactly 7 different natural divisors, not counting 1 and the number itself. For each found number, print these 7 divisors from a new line in ascending order of the product of these 7 divisors. Divisors must be in ascending order.