项目作者: chew-z

项目描述 :
Sieving primes and counting primes
高级语言: Python
项目地址: git://github.com/chew-z/Primes.git
创建时间: 2017-10-08T06:43:14Z
项目社区:https://github.com/chew-z/Primes

开源协议:MIT License

下载


Primes

Sieving primes and counting primes

This is a small code base that I have accumulated over years playing with prime numbers on my free time. Initially I did run this code in Pythonista on my iPhone. This is adopted to run on laptop with python3.

Prime sieves come mostly from this thread on Stackexchange - I have adapted some to python3. A little is forked form this github project. Other sources are in the code. Not all.

I have also added few tricks on my own.

Benchmark

PlotPi

PlotPrime