Jump to content

Factors of an integer: Difference between revisions

m
(→‎{{header|Ruby}}: use Integer.sqrt)
Line 4,803:
 
=={{header|Quackery}}==
 
Notes:
 
<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>
 
{{byeout}}
 
<pre> 1: 1
1,493

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.