按奇数和偶数分类:
偶数:{0,2,4,6,8,10,12,14,16,18,20}
奇数:{1,3,5,7,9,11,13,15,17,19}
按素数和合数分类:
素数:{2,3,5,7,11,13,17,19}
合数:{4,6,8,9,10,12,14,15,16,18,20}
既不是合数也不是素数:{0,1}
按奇数和偶数分类:
偶数:{0,2,4,6,8,10,12,14,16,18,20}
奇数:{1,3,5,7,9,11,13,15,17,19}
按素数和合数分类:
素数:{2,3,5,7,11,13,17,19}
合数:{4,6,8,9,10,12,14,15,16,18,20}
既不是合数也不是素数:{0,1}