Posts by tiago • 1 point
1 post
-
-3
votes8
answers4052
viewsA: How to generate 200,000 primes as fast as possible in Python?
test this one: """ Created on Mon Jun 24 14:55:40 2019 @author: Tiago C. Coura """ def primeirosprimos(x): seq=[2,3,5] a=0 controler=0 while True: a+=1 if a%2==0: r1=3*a+5 else: r1=3*a+4 if r1%5==0:…