This module is a continuation of the math module but adds functions to solve certain number theory problems.
View and copy any functions defined in the file. Or, if so inclined, fork this repo and continue working on your own by adding, removing or changing code.
prime_factors(num)
- Returns the prime factors, with repeats, of a specific integer in the form of a list, by trial division.
- Example: prime_factors(36) = [2, 2, 3, 3]
Matt Sexton