Skip to content

Instantly share code, notes, and snippets.

View shahzzzam's full-sized avatar
💭
shell of a person

Sam shahzzzam

💭
shell of a person
View GitHub Profile
@shahzzzam
shahzzzam / lol.py
Created August 20, 2015 20:05
From chrome://newtab/
import time
def give_primes_upto(n):
primes = []
if n <= 1:
return primes
sieve = [True] * (n+1)
sieve[2] = sieve[3] = False
for i in range(4, n, 2):