Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yurlungur/sum_primes

A little script to sum all of the primes less than some maximum number N.
https://github.com/yurlungur/sum_primes

Last synced: 13 days ago
JSON representation

A little script to sum all of the primes less than some maximum number N.

Awesome Lists containing this project

README

        

sum_primes.py

This is a tiny little Python script to sum all prime numbers less than
some maximum number N. Uses the Sieve of Eratosthenes.

For more info on the Sieve, see:
http://www.thephysicsmill.com/2012/12/16/panning-for-primes-with-the-sieve-of-eratosthenes/
https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes