FS="=|x"{for(;$2%=$1-=$2%$1;);$0=$3%$1?"no":"yes"}a++
5 2x+3y=5 4x+8y=25 9x+7y=4 8x+4y=4
yes no yes yes
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!