Practical numbers: Difference between revisions
Content added Content deleted
m (→{{Header|Python}}: Slightly.) |
|||
Line 187: | Line 187: | ||
the sets. 720, another Practical number needs just 0.01% of its half a billion sets to prove it is Practical. |
the sets. 720, another Practical number needs just 0.01% of its half a billion sets to prove it is Practical. |
||
Note however that if the number is '''not''' ultimately Practical, with a large number of factors, then the loop to find this is ''slower''. |
Note however that if the number is '''not''' ultimately Practical, with a large number of factors, then the loop to find this is slightly ''slower''. |
||
<lang python>def is_practical2(x: int, __switch=23) -> bool: |
<lang python>def is_practical2(x: int, __switch=23) -> bool: |