Skip to content

Kunj-Parikh/Factoring-Tricks-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Factoring-Tricks-in-Python

primeFactorizer.py

A program that factorizes a number into its primes, including its powers.

sumOfFactors.py

A program that gives the sum of the factors of a number. For information on the trick used, read this math explanation: https://planetmath.org/formulaforsumofdivisors

numOfFactors.py

A program that returns the number of factors a number has. It calculates it by adding 1 to the power of the prime factors. and multiplying them.

productOfFactors.py

A program that returns the product of the factors of a number. It uses the formula F^(n/2) where F is the original number and n is the number of factors of that number.

About

Competitive math factoring tricks implemented in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages