I have two problems. First, the output has single digit numbers in it which I believe makes them not emirps (because they are the same backwards and forwards). The second problem I'm having is in formatting. I tried several variations of the printf(%3d, n) variety and could not get them to format properly. It has to be the 1st 100 emirps, 10 per line, each row right justified. The example output is:
13 17 31 37 71 73 79 97 107 113
149 157 167 179 199 311 337 347 359 389
Any help would be greatly appreciated.