This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Kefei Dan Zhou | |
# | |
import math | |
# return a dict or a list of primes up to N | |
# create full prime sieve for N=10^6 in 1 sec |