import mathprint([x for x in range(20) if [i for i in range(2,math.floor(math.sqrt(x))-1) if x % i == 0] == []])
Standard input is empty
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!