We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #21: Amicable numbers
Project Euler #21: Amicable numbers
Sort by
recency
|
65 Discussions
|
Please Login in order to post a comment
The amicable numbers are a well-studied sequecence, and a list of several of them can be found here. Technically, you could just use this list to find your result, but I encourage you to use them only for checking and testing your code. Otherwise, what's the point?
// C# using System; using System.Collections.Generic;
class Program { static int S(int n) { int sum = 1;
}
easy sol