Skip to content

Commit ac44461

Browse files
Update prime_factors.py
1 parent e7d6cbd commit ac44461

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

maths/prime_factors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ def unique_prime_factors(n: int) -> list[int]:
6161
[]
6262
>>> unique_prime_factors(0.02)
6363
[]
64-
>>> x = unique_prime_factors(10**241) # doctest: +NORMALIZE_WHITESPACE
65-
>>> x == [2, 5]
66-
True
64+
>>> unique_prime_factors(10**241)
65+
[2, 5]
6766
>>> unique_prime_factors(10**-354)
6867
[]
6968
>>> unique_prime_factors('hello')
@@ -74,7 +73,6 @@ def unique_prime_factors(n: int) -> list[int]:
7473
Traceback (most recent call last):
7574
...
7675
TypeError: '<=' not supported between instances of 'int' and 'list'
77-
7876
"""
7977
i = 2
8078
factors = []

0 commit comments

Comments
 (0)