Paste Search Dynamic
Recent pastes
M N map
  1. import sys
  2.  
  3. M, N = map(int, sys.stdin.readline().split())
  4. e = [x for x in range(2, N + 1)]
  5. i = 0
  6.  
  7. while e[i] < e[-1]:
  8.         e = [x for x in e if x > e[i] if x % e[i] != 0]
  9.  
  10. print(e)
Parsed in 0.004 seconds