0
PFD, HCF & LCM
code-golf math
Challenge
Given two numbers, you must find the prime factor decomposition (PFD) of the two numbers, then using the PFD of each number, calculate the highest common factor (HCF) and the lowest common multiple (LCM).
Examples
Input: 20, 40
Output:
20= 2^2 * 5
40 ...