Menu
Coddy logo textTech

Abundant Number

Lesson 7 of 24 in Coddy's Golang Challenges - Level 1 course.

challenge icon

Challenge

Easy

write a function that take a number and check if its abundant number,

Abundant numbers are those positive integers for which the sum of their proper divisors (excluding the number itself) is greater than the number itself. In other words, the sum of divisors is abundant compared to the number itself.

examples of abundant number:

12 (divisors: 1, 2, 3, 4, 6; sum: 16)
18 (divisors: 1, 2, 3, 6, 9; sum: 21)

Try it yourself

func isAbundantNumber( )   {
 
}

All lessons in Golang Challenges - Level 1