Factors of an integer: Difference between revisions
m
→{{header|Quackery}}: tidy up
(→{{header|Ruby}}: use Integer.sqrt) |
m (→{{header|Quackery}}: tidy up) |
||
Line 4,803:
=={{header|Quackery}}==
<code>isqrt</code> returns the integer square root and remainder (i.e. the square root of 11 is 3 remainder 2, because three squared plus two equals eleven.) If the number is a perfect square the remainder is zero. This is used to remove a duplicate factor from the list of factors which is generated when finding the factors of a perfect square.
Line 4,844 ⟶ 4,842:
cr ]</lang>
{{
<pre> 1: 1
|