Skip to content

Commit

Permalink
challenge_28
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Glucose committed Jan 10, 2025
1 parent 0ce6c05 commit 5934109
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions solutions/challenge_28/perfect_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
A module for identifying perfect numbers in a given range
Created on 06 Jan 2025
@author: Arthur (Mr-Glucose)
"""


def get_divisors(n):
"""
Returns a list of divisors of n, excluding n itself.
"""
"""Checks if a list of divisors of n, excluding n itself"""
if n <= 0:
raise ValueError("Input must be a positive integer greater than 0")

Expand Down

0 comments on commit 5934109

Please sign in to comment.