We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7d6cbd commit ac44461Copy full SHA for ac44461
1 file changed
maths/prime_factors.py
@@ -61,9 +61,8 @@ def unique_prime_factors(n: int) -> list[int]:
61
[]
62
>>> unique_prime_factors(0.02)
63
64
- >>> x = unique_prime_factors(10**241) # doctest: +NORMALIZE_WHITESPACE
65
- >>> x == [2, 5]
66
- True
+ >>> unique_prime_factors(10**241)
+ [2, 5]
67
>>> unique_prime_factors(10**-354)
68
69
>>> unique_prime_factors('hello')
@@ -74,7 +73,6 @@ def unique_prime_factors(n: int) -> list[int]:
74
73
Traceback (most recent call last):
75
...
76
TypeError: '<=' not supported between instances of 'int' and 'list'
77
-
78
"""
79
i = 2
80
factors = []
0 commit comments