id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

amicable


Two integers are called "Amicable Numbers" if the sum of the proper divisors of one is equal to the other, and vice-versa. Write amicable(m, n) to return True if m and n are amicable numbers.


amicable(220, 284) → True
amicable(222, 286) → False
amicable(284, 220) → True

...Save, Compile, Run (ctrl-enter)

def amicable(m, n):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 252 Post-solution available

Copyright Nick Parlante 2017 - privacy