Closed
Description
The current implementation doesn't support:
- Negative values, -1 is not a prime number. Current implementation raise a TypeError due to
math.sqrt
on negative values.
The current implementation return the wrong value for:
- 0, 0 doesn't have any divider, primes must have two.
- 1, 1 just have one divider, primes must have two.
Metadata
Metadata
Assignees
Labels
No labels