Hackerrank Challenges - Angry professor

(CM) I love this solution. It uses an external function to determine numbers that fulfill a condition.