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 a function for prime perfect number #16

Open
sylhare opened this issue Nov 7, 2018 · 0 comments
Open

Add a function for prime perfect number #16

sylhare opened this issue Nov 7, 2018 · 0 comments

Comments

@sylhare
Copy link
Owner

sylhare commented Nov 7, 2018

Given a positive integer
When passed to the function it will tell if it is a perfect number or not

In number theory, a perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the sum of its positive divisors excluding the number itself:

# divisor of 6
6 = 1 x 6
6 = 2 x 3
6 = 3 x 2

# Sum of divisor
6 = 1 + 2 + 3

Source:
https://en.wikipedia.org/wiki/Perfect_number

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

No branches or pull requests

1 participant