Add nonworking p5.  Solved problem by hand using
properties of prime factoriztion and lcm/gcd
only partial code