Crate eb_prime_factor[−][src]
Calculate Prime Factors
Given a positive number (up to 18,446,744,073,709,551,615), calculate the set of prime numbers that yield the given number when multiplied together. For example, 2 x 2 x 3 x 5 = 60.
Functions
is_prime | Determine whether a number is prime |
main | Calculate and display prime factors |
next_prime | Find next prime in sequence |
prime_factors | Calculate prime factors |