C program that determines numbers within a designated maximum badness that are less than a limiting value.
The limiting value and maximum badness are provided as command line arguments when the program is executed.
Command line arguments can be specified within CLion by editing the build configuration.
A perfect number is an integer that is equal to the sum of its divisors where 1 is considered a divisor.
For example 6 is perfect because its divisors are 1 2 and 3 and 1 2 3 is 6.
Similarly 28 is perfect because it equals 1 2 4 7 14.
A quite good number is an integer whose badnessthe size of the difference between the sum of its divisors and the number itselfis not greater than a specified value.
For example if the maximum badness is set at 3 there are 12 quite good numbers less than 100: 2 3 4 6 8 10 16 18 20 28 32 and 64.
Источник: rutube.ru