We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b8b91 commit 91256fdCopy full SHA for 91256fd
src/main/java/com/fishercoder/solutions/_507.java
@@ -1,18 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 507. Perfect Number
5
- *
6
- * We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself.
7
- * Now, given an integer n, write a function that returns true when it is a perfect number and false when it is not.
8
-
9
- Example:
10
- Input: 28
11
- Output: True
12
- Explanation: 28 = 1 + 2 + 4 + 7 + 14
13
14
- Note: The input number n will not exceed 100,000,000. (1e8)
15
- */
16
public class _507 {
17
18
public static class Solution1 {
0 commit comments