fork download
  1. import math
  2.  
  3. print([x for x in range(20) if [i for i in range(2,x-1) if x % i == 0] == []])
Success #stdin #stdout 0.02s 8688KB
stdin
Standard input is empty
stdout
[0, 1, 2, 3, 5, 7, 11, 13, 17, 19]