:- use_module(library(chr)). handler gcd. constraints gcd/1. gcd(0) <=> true. gcd(N) \ gcd(M) <=> N=