2, 5, 7, 11, 13, 17, 19, 23, 29 and 31 are such numbers which can be shown only as line.
123 x 9 + 4 = 1111.