#/usr/bin/env python __author__ = 'Luiz Augusto de M. Morais' ...
Python isprime
by https://profiles.google.com/luizaugustomm,
April 13, 2011 19:22,
3 refactorings, tagged with python, Prime, Prime Numbers
def primes(n):
s=[1,]+range(4,n+1,2)+range(6,n+1,3)+range(10,n+1,5)+range(14,n+1,7)
for x in (2,3,5,7):
...
Python Sieve of Eratosthenes
I've purposely avoided look...
This code contains a functi...