Compute prime numbers in Python
nums = range(2, 50) for i in range(2, 8): nums = filter(lambda x: x == i or x % i, nums) print nums