p433 improvement

Slightly improved problem 433 by making GCD O(N)