The Wayback Machine - https://web.archive.org/web/20201103191633/https://github.com/TheAlgorithms/Java/issues/1830
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Projecteuler solution for problem 21 #1830

Open
chamil321 opened this issue Oct 17, 2020 · 0 comments
Open

Add Projecteuler solution for problem 21 #1830

chamil321 opened this issue Oct 17, 2020 · 0 comments

Comments

@chamil321
Copy link

@chamil321 chamil321 commented Oct 17, 2020

link: https://projecteuler.net/problem=21

Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).
If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers.

For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110; therefore d(220) = 284. The proper divisors of 284 are 1, 2, 4, 71 and 142; so d(284) = 220.

Evaluate the sum of all the amicable numbers under 10000.

@chamil321 chamil321 changed the title Add projecteuler solution for problem 20 Add Projecteuler solution for problem 21 Oct 17, 2020
chamil321 added a commit to chamil321/Java that referenced this issue Oct 17, 2020
chamil321 added a commit to chamil321/Java that referenced this issue Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.