The proper divisors of a number are all the positive divisors of that are smaller than . For instance, the proper divisors of 20 are 1, 2, 4, 5, and 10. In this problem, we will say that a number is pseudoperfect if it can be obtained by adding up some of (or all) its proper divisors. For instance, 20 is pseudoperfect, because .
Write a program that, for every given number ,
if has more than 15 proper divisors, prints how many it has;
if has 15 or less proper divisors, tells if is pseudoperfect or not.
Input consists of several strictly positive natural numbers.
For every given , print its number of proper divisors, if this is larger than 15. Otherwise, tell if is pseudoperfect or not. Follow the format of the example.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:58:43.011Z
© Jutge.org, 2006–2026.
https://jutge.org