When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Integer square root - Wikipedia

    en.wikipedia.org/wiki/Integer_square_root

    In number theory, the integer square root ... is a perfect square, the sequence ... Python: math.isqrt(n) [11] 3.8

  3. Methods of computing square roots - Wikipedia

    en.wikipedia.org/wiki/Methods_of_computing...

    A method analogous to piece-wise linear approximation but using only arithmetic instead of algebraic equations, uses the multiplication tables in reverse: the square root of a number between 1 and 100 is between 1 and 10, so if we know 25 is a perfect square (5 × 5), and 36 is a perfect square (6 × 6), then the square root of a number greater than or equal to 25 but less than 36, begins with ...

  4. Square root - Wikipedia

    en.wikipedia.org/wiki/Square_root

    The square root of x is rational if and only if x is a rational number that can be represented as a ratio of two perfect squares. (See square root ... PHP, and Python

  5. nth root - Wikipedia

    en.wikipedia.org/wiki/Nth_root

    A square root of a number x is a number r which, when squared, becomes x: =. Every positive real number has two square roots, one positive and one negative. For example, the two square roots of 25 are 5 and −5. The positive square root is also known as the principal square root, and is denoted with a radical sign:

  6. Trial division - Wikipedia

    en.wikipedia.org/wiki/Trial_division

    Should the square root of n be an integer, then it is a factor and n is a perfect square. An example of the trial division algorithm, using successive integers as trial factors, is as follows (in Python):

  7. Quadratic sieve - Wikipedia

    en.wikipedia.org/wiki/Quadratic_sieve

    Multiply the corresponding a i together and give the result mod n the name a; similarly, multiply the b i together which yields a B-smooth square b 2. We are now left with the equality a 2 = b 2 mod n from which we get two square roots of (a 2 mod n), one by taking the square root in the integers of b 2 namely b, and the other the a computed in ...

  8. Fermat's factorization method - Wikipedia

    en.wikipedia.org/wiki/Fermat's_factorization_method

    For example, to factor =, the first try for a is the square root of 5959 rounded up to the next integer, which is 78. Then b 2 = 78 2 − 5959 = 125 {\displaystyle b^{2}=78^{2}-5959=125} . Since 125 is not a square, a second try is made by increasing the value of a by 1.

  9. Baillie–PSW primality test - Wikipedia

    en.wikipedia.org/wiki/Baillie–PSW_primality_test

    If n is a perfect square, then step 3 will never yield a D with (D/n) = −1; this is not a problem because perfect squares are easy to detect using Newton's method for square roots. If step 3 fails to produce a D quickly, one should check whether n is a perfect square. Given n, there are other methods for choosing D, P, and Q.