finished 005, using answer=answer*value/GCD