--- from: http://rosettacode.org/wiki/Intersecting_number_wheels