Quick actions

cmd+k|ctrl+k

Navigation

Languages

vinhquang3.10fix

Snippet info

Language

Python

Visibility

public

Author

vinhquang-pyt

Created

2016-09-27T08:44:24Z

Updated

2016-09-27T09:46:25Z

lst_primes = []
for i in range(2, 1000):
        for j in range(2, i):
            if i % j == 0:
                break
        else:
                lst_primes.append(i)
        if len(lst_primes) == 10:
            break
print('Output: %s' % lst_primes)
INFO