hw-9.2 GCD/Prime