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

Задача 33365. List of divisors - 01


Задача

Темы: Целые числа
Write a program that searches among the integers belonging to the numerical interval [114059; 137640] numbers which 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 sum of these 7 divisors. Divisors must be in ascending order.