1, 3, 7, 9
public bool IsVisible(int id, int simple) { string str = id.ToString(); int last = str[str.Length - 1] - '0'; if (last == 1 || last == 3 || last == 7 || last == 9) { return true; } return false; } 0 [ 1 ] [ 3 ] [ 7 ] 9 1 [ 11 ] [ 13 ] [ 17 ] [ 19 ] 2 21 [ 23 ] 27 [ 29 ] 3 [ 31 ] 33 ...