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