Skip to content

Sum of its factors #60

Description

@yjlim5

Write a function that given a number, returns the sum of all of its factors.
Input: 4
Output: 6 (because it is 1+2+4)

Input: 10
Output: 18 (because it is 1+2+5+10)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions