Problem 52644. List modest numbers up to n
After determining the nude numbers, or the numbers that openly display some of their divisors as their digits, one would think that the modest numbers were those not divisible by any of their digits. Instead a modest number x is one that can be divided into two parts a and b such that when x is divided by b, the remainder is a. For example, 411 is modest because it can be divided into 4 and 11, and dividing 411 by 11 leaves a remainder of 4.
Write a function to list the modest numbers up to n.
Solution CommentsShow comments
Problem Recent Solvers8