Question: 1. Define a function samefactorset which takes two non-zero integers m and n and checks whether their absolute values have the same set of prime

1. Define a function samefactorset which takes two non-zero integers m and n and checks whether their absolute values have the same set of prime factors. For instance, 12 and 18 have the same set of factors, {2,3}. e stat la donatie van hus had set of prime factors. For instance, we ai is You can assume that the inputs will be non-zero. Any other function you define must be local to the above definition. - samefactorset (12, 54); val it = true : bool - samefactorset (350, 140); val it = true : bool - samefactorset (7007, 91); val it = false : bool - samefactorset(1, 64); val it = false : bool - samefactorset(1, 1); val it = true : bool
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
