Integer Classification By Linearity