Top "Factorization" questions

In mathematics, factorization is basically the decomposition of an object like number or polynomials into a product of smaller, simpler objects.

What is the most efficient way of finding all the factors of a number in Python?

Can someone explain to me an efficient way of finding all the factors of a number in Python (2.7)? I can …

python algorithm python-2.7 performance factorization
Efficiently getting all divisors of a given number

According to this post, we can get all divisors of a number through the following codes. for (int i = 1; i &…

c++ algorithm math factorization
What is the fastest integer factorization algorithm?

I've written a program that attempts to find Amicable Pairs. This requires finding the sums of the proper divisors of …

algorithm math language-agnostic maple factorization
Java Display the Prime Factorization of a number

So for my assignment, I have to write a program that asks the user for an integer input and then …

java factorization
Finding prime factors

#include <iostream> using namespace std; void whosprime(long long x) { bool imPrime = true; for(int i = 1; i <= …

c++ primes prime-factoring factorization
efficient ways of finding the largest prime factor of a number

I'm doing this problem on a site that I found (project Euler), and there is a question that involves finding …

python primes prime-factoring factorization
R Function for returning ALL factors

My normal search foo is failing me. I'm trying to find an R function that returns ALL of the factors …

r factorization
Prime factors in Haskell

I'm new to Haskell. How to generate a list of lists which contains prime factors of next integers? Currently, I …

haskell primes factorization prime-factoring
Efficiently finding all divisors of a number

So I simply want to find all the divisors of a given number (excepting the number itself). Currently, I have …

c# prime-factoring factorization
Find the largest prime factor with Javascript

Thanks for reading. Pretty new to Javascript and programming in general. I'm looking for a way to return the largest …

javascript factorization